Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codechimp committed Apr 9, 2024
1 parent 7123727 commit 74d3117
Show file tree
Hide file tree
Showing 19 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "andrew-codechimp/hive-mqtt-orchestrator",
"name": "andrew-codechimp/hive-local-thermostat",
"image": "mcr.microsoft.com/vscode/devcontainers/python:3.12-bullseye",
"postCreateCommand": "scripts/setup",
"forwardPorts": [
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
shell: "bash"
run: |
yq -i -o json '.version="${{ github.event.release.tag_name }}"' \
"${{ github.workspace }}/custom_components/hive_mqtt_orchestrator/manifest.json"
"${{ github.workspace }}/custom_components/hive_local_thermostat/manifest.json"
- name: "ZIP the integration directory"
shell: "bash"
run: |
cd "${{ github.workspace }}/custom_components/hive_mqtt_orchestrator"
zip hive_mqtt_orchestrator.zip -r ./
cd "${{ github.workspace }}/custom_components/hive_local_thermostat"
zip hive_local_thermostat.zip -r ./
- name: "Upload the ZIP file to the release"
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/hive_mqtt_orchestrator/hive_mqtt_orchestrator.zip
files: ${{ github.workspace }}/custom_components/hive_local_thermostat/hive_local_thermostat.zip
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# HA-Hive-MQTT-Orchestrator
# HA-Hive-Local-Thermostat
Local Hive Thermostat MQTT integration Home Assistant

## Early beta
**Early beta**

To use this integration your Hive thermostat receiver must be added to [Zigbee2MQTT](https://www.zigbee2mqtt.io/supported-devices/#v=Hive) and a MQTT broker and the MQTT integration within Home Assistant must be correctly configured.

Expand Down
2 changes: 1 addition & 1 deletion config/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_config:
logger:
default: warning
logs:
custom_components.hive_mqtt_orchestrator: debug
custom_components.hive_local_thermostat: debug

debugpy:
start: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Custom integration to integrate hive_mqtt_orchestrator with Home Assistant.
"""Custom integration to integrate hive_local_thermostat with Home Assistant.
For more details about this integration, please refer to
https://github.com/andrew-codechimp/HA_Hive_MQTT_Orchestrator
https://github.com/andrew-codechimp/HA_Hive_Local_Thermostat
"""

from __future__ import annotations
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Sensor platform for hive_mqtt_orchestrator."""
"""Sensor platform for hive_local_thermostat."""

from __future__ import annotations

Expand Down Expand Up @@ -81,7 +81,7 @@ async def async_setup_entry(
hass.data[DOMAIN][config_entry.entry_id][Platform.CLIMATE] = _entities

class HiveClimateEntity(HiveEntity, ClimateEntity):
"""hive_mqtt_orchestrator Climate class."""
"""hive_local_thermostat Climate class."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Adds config flow for hive_mqtt_orchestrator."""
"""Adds config flow for hive_local_thermostat."""
from __future__ import annotations

from collections.abc import Mapping
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Constants for hive_mqtt_orchestrator."""
"""Constants for hive_local_thermostat."""

import json
from logging import Logger, getLogger
Expand Down
17 changes: 17 additions & 0 deletions custom_components/hive_local_thermostat/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"domain": "hive_local_thermostat",
"name": "Hive Local Thermostat",
"codeowners": [
"@andrew-codechimp"
],
"config_flow": true,
"dependencies": [
"mqtt"
],
"documentation": "https://github.com/andrew-codechimp/HA-Hive-Local-Thermostat",
"integration_type": "device",
"iot_class": "calculated",
"issue_tracker": "https://github.com/andrew-codechimp/HA-Hive-Local-Thermostat/issues",
"requirements": [],
"version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Number platform for hive_mqtt_orchestrator."""
"""Number platform for hive_local_thermostat."""

from __future__ import annotations

Expand Down Expand Up @@ -149,7 +149,7 @@ async def async_setup_entry(
hass.data[DOMAIN][config_entry.entry_id][Platform.NUMBER] = _entities

class HiveNumber(HiveEntity, RestoreNumber):
"""hive_mqtt_orchestrator Number class."""
"""hive_local_thermostat Number class."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Select platform for hive_mqtt_orchestrator."""
"""Select platform for hive_local_thermostat."""

from __future__ import annotations

Expand Down Expand Up @@ -69,7 +69,7 @@ async def async_setup_entry(
hass.data[DOMAIN][config_entry.entry_id][Platform.SELECT] = _entities

class HiveSelect(HiveEntity, SelectEntity, RestoreEntity):
"""hive_mqtt_orchestrator Select class."""
"""hive_local_thermostat Select class."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Sensor platform for hive_mqtt_orchestrator."""
"""Sensor platform for hive_local_thermostat."""

from __future__ import annotations

Expand Down Expand Up @@ -84,7 +84,7 @@ async def async_setup_entry(
hass.data[DOMAIN][config_entry.entry_id][Platform.SENSOR] = _entities

class HiveSensor(HiveEntity, SensorEntity):
"""hive_mqtt_orchestrator Sensor class."""
"""hive_local_thermostat Sensor class."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Sensor platform for hive_mqtt_orchestrator."""
"""Sensor platform for hive_local_thermostat."""

from __future__ import annotations

Expand Down Expand Up @@ -81,7 +81,7 @@ async def async_setup_entry(
hass.data[DOMAIN][config_entry.entry_id][Platform.SWITCH] = _entities

class HiveSwitch(HiveEntity, SwitchEntity):
"""hive_mqtt_orchestrator Switch class."""
"""hive_local_thermostat Switch class."""

def __init__(
self,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Attributes helper for hive_mqtt_orchestrator."""
"""Attributes helper for hive_local_thermostat."""

import re
from datetime import datetime
Expand Down
17 changes: 0 additions & 17 deletions custom_components/hive_mqtt_orchestrator/manifest.json

This file was deleted.

2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hive MQTT Orchestrator",
"filename": "hive_mqtt_orchestrator.zip",
"filename": "hive_local_thermostat.zip",
"hide_default_branch": true,
"homeassistant": "2024.3.0",
"render_readme": true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/develop
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ ! -d "${PWD}/config" ]]; then
fi

# Set the path to custom_components
## This let's us have the structure we want <root>/custom_components/hive_mqtt_orchestrator
## This let's us have the structure we want <root>/custom_components/hive_local_thermostat
## while at the same time have Home Assistant configuration inside <root>/config
## without resulting to symlinks.
export PYTHONPATH="${PYTHONPATH}:${PWD}/custom_components"
Expand Down

0 comments on commit 74d3117

Please sign in to comment.