Skip to content

Commit

Permalink
Fix energy sensor for ThirdReality Matter powerplug (home-assistant#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt authored and iloveicedgreentea committed Sep 4, 2024
1 parent 8b28334 commit c4522fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/matter/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def _update_from_device(self) -> None:
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,
Expand Down

0 comments on commit c4522fb

Please sign in to comment.