mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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:
parent
67f7e97b4c
commit
6dd43be6ac
@ -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,
|
||||||
),
|
),
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user