Fix energy sensor for ThirdReality Matter powerplug (#125140)
This commit is contained in:
parent
334359bb0a
commit
fd01e22ca4
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ DISCOVERY_SCHEMAS = [
|
|||
key="ThirdRealityEnergySensorWattAccumulated",
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||
suggested_display_precision=3,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
measurement_to_ha=lambda x: x / 1000,
|
||||
|
|
Loading…
Add table
Reference in a new issue