Set the correct state class for Eve Energy in homekit_controller (#81255)
parent
d5a46c3a10
commit
eb76f9b3cb
|
@ -183,7 +183,7 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||
key=CharacteristicsTypes.VENDOR_EVE_ENERGY_KW_HOUR,
|
||||
name="Energy kWh",
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.MEASUREMENT,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||
),
|
||||
CharacteristicsTypes.VENDOR_EVE_ENERGY_VOLTAGE: HomeKitSensorEntityDescription(
|
||||
|
|
|
@ -70,7 +70,7 @@ async def test_eve_energy_setup(hass):
|
|||
entity_id="sensor.eve_energy_50ff_energy_kwh",
|
||||
unique_id="00:00:00:00:00:00_1_28_35",
|
||||
friendly_name="Eve Energy 50FF Energy kWh",
|
||||
capabilities={"state_class": SensorStateClass.MEASUREMENT},
|
||||
capabilities={"state_class": SensorStateClass.TOTAL_INCREASING},
|
||||
unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||
state="0.28999999165535",
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue