From 2aa1d3df01968cf2498a9daf6d36157207daddb7 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Sun, 16 Apr 2023 13:55:08 +0200 Subject: [PATCH] Correct name for IH #22 --- custom_components/hon/binary_sensor.py | 2 +- custom_components/hon/button.py | 2 +- custom_components/hon/manifest.json | 4 ++-- custom_components/hon/number.py | 4 ++-- custom_components/hon/select.py | 4 ++-- custom_components/hon/sensor.py | 2 +- custom_components/hon/switch.py | 1 + 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/custom_components/hon/binary_sensor.py b/custom_components/hon/binary_sensor.py index 6e3e030..b119722 100644 --- a/custom_components/hon/binary_sensor.py +++ b/custom_components/hon/binary_sensor.py @@ -124,7 +124,7 @@ BINARY_SENSORS: dict[str, tuple[HonBinarySensorEntityDescription, ...]] = { icon="mdi:power-cycle", ), ), - "IV": ( + "IH": ( HonBinarySensorEntityDescription( key="attributes.lastConnEvent.category", name="Connection", diff --git a/custom_components/hon/button.py b/custom_components/hon/button.py index d932bc8..eb5def2 100644 --- a/custom_components/hon/button.py +++ b/custom_components/hon/button.py @@ -26,7 +26,7 @@ BUTTONS: dict[str, tuple[ButtonEntityDescription, ...]] = { icon="mdi:power-off", ), ), - "IV": ( + "IH": ( ButtonEntityDescription( key="startProgram", name="Start Program", diff --git a/custom_components/hon/manifest.json b/custom_components/hon/manifest.json index ab245fc..1d1aba5 100644 --- a/custom_components/hon/manifest.json +++ b/custom_components/hon/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://github.com/Andre0512/hon/", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/Andre0512/hon/issues", - "requirements": ["pyhOn==0.8.0b4"], - "version": "0.6.0-beta.3" + "requirements": ["pyhOn==0.8.0b5"], + "version": "0.6.0-beta.4" } diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 468d5dd..67f8045 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -1,7 +1,7 @@ from __future__ import annotations from pyhon import Hon -from pyhon.parameter import HonParameterRange +from pyhon.parameter.range import HonParameterRange from homeassistant.components.number import ( NumberEntity, @@ -106,7 +106,7 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { native_unit_of_measurement=UnitOfTime.MINUTES, ), ), - "IV": ( + "IH": ( NumberEntityDescription( key="startProgram.temp", name="Temperature", diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index 257240a..cb3e640 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -4,7 +4,7 @@ import logging from pyhon import Hon from pyhon.appliance import HonAppliance -from pyhon.parameter import HonParameterFixed +from pyhon.parameter.fixed import HonParameterFixed from homeassistant.components.select import SelectEntity, SelectEntityDescription from homeassistant.config_entries import ConfigEntry @@ -76,7 +76,7 @@ SELECTS = { entity_category=EntityCategory.CONFIG, ), ), - "IV": ( + "IH": ( SelectEntityDescription( key="startProgram.program", name="Program", diff --git a/custom_components/hon/sensor.py b/custom_components/hon/sensor.py index afa25ff..729ba93 100644 --- a/custom_components/hon/sensor.py +++ b/custom_components/hon/sensor.py @@ -221,7 +221,7 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { icon="mdi:thermometer", ), ), - "IV": ( + "IH": ( SensorEntityDescription( key="remainingTimeMM", name="Remaining Time", diff --git a/custom_components/hon/switch.py b/custom_components/hon/switch.py index 1d30b9d..b2dcc0b 100644 --- a/custom_components/hon/switch.py +++ b/custom_components/hon/switch.py @@ -8,6 +8,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory from pyhon import Hon from pyhon.appliance import HonAppliance +from pyhon.parameter.range import HonParameterRange from .const import DOMAIN from .hon import HonCoordinator, HonEntity