Fix energy sensor for ThirdReality Matter powerplug (#125140)

This commit is contained in:
Marcel van der Veldt
2024-09-03 15:24:49 +02:00
committed by GitHub
parent 334359bb0a
commit fd01e22ca4

View File

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