mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Set the correct state class for Eve Energy in homekit_controller (#81255)
This commit is contained in:
parent
d5a46c3a10
commit
eb76f9b3cb
@ -183,7 +183,7 @@ SIMPLE_SENSOR: dict[str, HomeKitSensorEntityDescription] = {
|
|||||||
key=CharacteristicsTypes.VENDOR_EVE_ENERGY_KW_HOUR,
|
key=CharacteristicsTypes.VENDOR_EVE_ENERGY_KW_HOUR,
|
||||||
name="Energy kWh",
|
name="Energy kWh",
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
),
|
),
|
||||||
CharacteristicsTypes.VENDOR_EVE_ENERGY_VOLTAGE: HomeKitSensorEntityDescription(
|
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",
|
entity_id="sensor.eve_energy_50ff_energy_kwh",
|
||||||
unique_id="00:00:00:00:00:00_1_28_35",
|
unique_id="00:00:00:00:00:00_1_28_35",
|
||||||
friendly_name="Eve Energy 50FF Energy kWh",
|
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,
|
unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
state="0.28999999165535",
|
state="0.28999999165535",
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user