From bd190522db54a2490719ae95b9c48a860404450f Mon Sep 17 00:00:00 2001 From: Benjamin Design & Consultancy Services <78026082+benjamin-dcs@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:33:25 +0100 Subject: [PATCH] Fix binary_sensor + ruff --- custom_components/ithodaalderop/binary_sensor.py | 2 +- custom_components/ithodaalderop/sensor.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/ithodaalderop/binary_sensor.py b/custom_components/ithodaalderop/binary_sensor.py index f9c3d2b..8148bfd 100644 --- a/custom_components/ithodaalderop/binary_sensor.py +++ b/custom_components/ithodaalderop/binary_sensor.py @@ -55,7 +55,7 @@ async def async_setup_entry( sensors.append(IthoBinarySensor(description, config_entry)) if config_entry.data[CONF_ADDON_TYPE] == "hrueco": - for description in HRU350BINARYSENSORS: + for description in HRUECOBINARYSENSORS: description.key = f"{MQTT_BASETOPIC["hrueco"]}/{MQTT_STATETOPIC["hrueco"]}" sensors.append(IthoBinarySensor(description, config_entry)) diff --git a/custom_components/ithodaalderop/sensor.py b/custom_components/ithodaalderop/sensor.py index 2b60456..be130c7 100644 --- a/custom_components/ithodaalderop/sensor.py +++ b/custom_components/ithodaalderop/sensor.py @@ -31,14 +31,13 @@ UNITTYPE_ICONS, WPU_STATUS, ) - from .definitions import ( AUTOTEMPROOMSENSORS, AUTOTEMPSENSORS, CVESENSORS, - LASTCMDSENSORS, HRU350SENSORS, HRUECOSENSORS, + LASTCMDSENSORS, WPUSENSORS, IthoSensorEntityDescription, )