From 6dd43be6ace0cce560c92da7c2b89653a1479f63 Mon Sep 17 00:00:00 2001 From: ribbal <30695106+ribbal@users.noreply.github.com> Date: Wed, 24 Jul 2024 07:50:44 +0100 Subject: [PATCH] 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 --- homeassistant/components/hive/sensor.py | 2 +- homeassistant/components/hive/strings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/hive/sensor.py b/homeassistant/components/hive/sensor.py index 3e594c19058..d51acecc9f6 100644 --- a/homeassistant/components/hive/sensor.py +++ b/homeassistant/components/hive/sensor.py @@ -74,7 +74,7 @@ SENSOR_TYPES: tuple[HiveSensorEntityDescription, ...] = ( HiveSensorEntityDescription( key="Heating_Mode", device_class=SensorDeviceClass.ENUM, - options=["schedule", "on", "off"], + options=["schedule", "manual", "off"], translation_key="heating", fn=lambda x: x.lower() if isinstance(x, str) else None, ), diff --git a/homeassistant/components/hive/strings.json b/homeassistant/components/hive/strings.json index c3252238131..bd4e95618e4 100644 --- a/homeassistant/components/hive/strings.json +++ b/homeassistant/components/hive/strings.json @@ -105,7 +105,7 @@ "sensor": { "heating": { "state": { - "on": "[%key:common::state::on%]", + "manual": "Manual", "off": "[%key:common::state::off%]", "schedule": "Schedule" }