mirror of
https://github.com/Andre0512/hon.git
synced 2025-08-03 23:31:15 +00:00
Merge b41ad4c8b9
into 70eb6c0111
This commit is contained in:
commit
5f73e61ddf
|
@ -18,6 +18,7 @@ from homeassistant.const import (
|
||||||
UnitOfEnergy,
|
UnitOfEnergy,
|
||||||
UnitOfVolume,
|
UnitOfVolume,
|
||||||
UnitOfMass,
|
UnitOfMass,
|
||||||
|
UnitOfPower,
|
||||||
UnitOfTime,
|
UnitOfTime,
|
||||||
UnitOfTemperature,
|
UnitOfTemperature,
|
||||||
)
|
)
|
||||||
|
@ -83,7 +84,7 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
||||||
name="Current Electricity Used",
|
name="Current Electricity Used",
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
native_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
icon="mdi:lightning-bolt",
|
icon="mdi:lightning-bolt",
|
||||||
translation_key="energy_current",
|
translation_key="energy_current",
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue