forked from home-assistant/core
Fix DSMR max current device class (#102219)
Max current is CURRENT Device Class The max current is shown as Amps. So need to change the device class to CURRENT instead of POWER.
This commit is contained in:
@@ -325,7 +325,7 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="max_current_per_phase",
|
translation_key="max_current_per_phase",
|
||||||
obis_reference=obis_references.BELGIUM_MAX_CURRENT_PER_PHASE,
|
obis_reference=obis_references.BELGIUM_MAX_CURRENT_PER_PHASE,
|
||||||
dsmr_versions={"5B"},
|
dsmr_versions={"5B"},
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.CURRENT,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
Reference in New Issue
Block a user