mirror of
https://github.com/home-assistant/core.git
synced 2026-09-05 18:25:01 -05:00
Fix energy sensor for ThirdReality Matter powerplug (#125140)
This commit is contained in:
committed by
Bram Kragten
parent
31267b4095
commit
1efd267ee6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user