From 4772374db7df6748101f117e003d0473acd89827 Mon Sep 17 00:00:00 2001 From: Vadym Melnychuk Date: Sun, 3 Dec 2023 20:31:46 +0200 Subject: [PATCH] fix pipeline --- custom_components/hon/number.py | 3 ++- custom_components/hon/select.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom_components/hon/number.py b/custom_components/hon/number.py index 5b4fbd3..28e9e33 100644 --- a/custom_components/hon/number.py +++ b/custom_components/hon/number.py @@ -6,6 +6,7 @@ from homeassistant.components.number import ( NumberEntity, NumberEntityDescription, NumberDeviceClass, + NumberMode, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import UnitOfTime, UnitOfTemperature @@ -200,7 +201,7 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = { key="settings.tempSel", name="Target Temperature", icon="mdi:thermometer", - mode="slider", + mode=NumberMode.SLIDER, device_class=NumberDeviceClass.TEMPERATURE, native_unit_of_measurement=UnitOfTemperature.CELSIUS, translation_key="target_temperature", diff --git a/custom_components/hon/select.py b/custom_components/hon/select.py index 2d78715..97db69d 100644 --- a/custom_components/hon/select.py +++ b/custom_components/hon/select.py @@ -316,7 +316,7 @@ class HonSelectEntity(HonEntity, SelectEntity): command = key_parts[0] if (self.entity_description.send_key_only): - await self._device.commands[command].send_specific(key_parts[1]) + await self._device.commands[command].send_specific([key_parts[1]]) else: await self._device.commands[command].send()