From e96bff16740d6104ca9249bc7837ed9109c74e5f Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Mon, 24 Jul 2023 19:31:25 +0200 Subject: [PATCH] Add alternative key names for Discovergy voltage sensors (#97155) --- homeassistant/components/discovergy/sensor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/discovergy/sensor.py b/homeassistant/components/discovergy/sensor.py index 3f4069752f2..fe6ed408298 100644 --- a/homeassistant/components/discovergy/sensor.py +++ b/homeassistant/components/discovergy/sensor.py @@ -101,6 +101,7 @@ ELECTRICITY_SENSORS: tuple[DiscovergySensorEntityDescription, ...] = ( device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, entity_registry_enabled_default=False, + alternative_keys=["voltage1"], ), DiscovergySensorEntityDescription( key="phase2Voltage", @@ -110,6 +111,7 @@ ELECTRICITY_SENSORS: tuple[DiscovergySensorEntityDescription, ...] = ( device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, entity_registry_enabled_default=False, + alternative_keys=["voltage2"], ), DiscovergySensorEntityDescription( key="phase3Voltage", @@ -119,6 +121,7 @@ ELECTRICITY_SENSORS: tuple[DiscovergySensorEntityDescription, ...] = ( device_class=SensorDeviceClass.VOLTAGE, state_class=SensorStateClass.MEASUREMENT, entity_registry_enabled_default=False, + alternative_keys=["voltage3"], ), # energy sensors DiscovergySensorEntityDescription(