Fix incorrect enum option in Hive heating sensor (#122496)

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add missing sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* add temperature and mode sensors

* Fix defect with Hive heating sensor options
This commit is contained in:
ribbal 2024-07-24 07:50:44 +01:00 committed by GitHub
parent 67f7e97b4c
commit 6dd43be6ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ SENSOR_TYPES: tuple[HiveSensorEntityDescription, ...] = (
HiveSensorEntityDescription( HiveSensorEntityDescription(
key="Heating_Mode", key="Heating_Mode",
device_class=SensorDeviceClass.ENUM, device_class=SensorDeviceClass.ENUM,
options=["schedule", "on", "off"], options=["schedule", "manual", "off"],
translation_key="heating", translation_key="heating",
fn=lambda x: x.lower() if isinstance(x, str) else None, fn=lambda x: x.lower() if isinstance(x, str) else None,
), ),

View File

@ -105,7 +105,7 @@
"sensor": { "sensor": {
"heating": { "heating": {
"state": { "state": {
"on": "[%key:common::state::on%]", "manual": "Manual",
"off": "[%key:common::state::off%]", "off": "[%key:common::state::off%]",
"schedule": "Schedule" "schedule": "Schedule"
} }