Add alternative key names for Discovergy voltage sensors (#97155)

This commit is contained in:
Jan-Philipp Benecke 2023-07-24 19:31:25 +02:00 committed by GitHub
parent 2bd6b519fa
commit e96bff1674
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(