fix pipeline
This commit is contained in:
parent
191bcedaa2
commit
4772374db7
2 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ from homeassistant.components.number import (
|
||||||
NumberEntity,
|
NumberEntity,
|
||||||
NumberEntityDescription,
|
NumberEntityDescription,
|
||||||
NumberDeviceClass,
|
NumberDeviceClass,
|
||||||
|
NumberMode,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import UnitOfTime, UnitOfTemperature
|
from homeassistant.const import UnitOfTime, UnitOfTemperature
|
||||||
|
@ -200,7 +201,7 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
||||||
key="settings.tempSel",
|
key="settings.tempSel",
|
||||||
name="Target Temperature",
|
name="Target Temperature",
|
||||||
icon="mdi:thermometer",
|
icon="mdi:thermometer",
|
||||||
mode="slider",
|
mode=NumberMode.SLIDER,
|
||||||
device_class=NumberDeviceClass.TEMPERATURE,
|
device_class=NumberDeviceClass.TEMPERATURE,
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
||||||
translation_key="target_temperature",
|
translation_key="target_temperature",
|
||||||
|
|
|
@ -316,7 +316,7 @@ class HonSelectEntity(HonEntity, SelectEntity):
|
||||||
command = key_parts[0]
|
command = key_parts[0]
|
||||||
|
|
||||||
if (self.entity_description.send_key_only):
|
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:
|
else:
|
||||||
await self._device.commands[command].send()
|
await self._device.commands[command].send()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue