forked from home-assistant/core
Toon, support Energy dashboard by default (#57233)
This commit is contained in:
@@ -186,7 +186,6 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
native_unit_of_measurement=VOLUME_CUBIC_METERS,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
device_class=DEVICE_CLASS_GAS,
|
device_class=DEVICE_CLASS_GAS,
|
||||||
entity_registry_enabled_default=False,
|
|
||||||
cls=ToonGasMeterDeviceSensor,
|
cls=ToonGasMeterDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
@@ -244,7 +243,6 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=DEVICE_CLASS_ENERGY,
|
device_class=DEVICE_CLASS_ENERGY,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
|
||||||
cls=ToonElectricityMeterDeviceSensor,
|
cls=ToonElectricityMeterDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
@@ -255,7 +253,6 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=DEVICE_CLASS_ENERGY,
|
device_class=DEVICE_CLASS_ENERGY,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
|
||||||
cls=ToonElectricityMeterDeviceSensor,
|
cls=ToonElectricityMeterDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
@@ -276,7 +273,6 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=DEVICE_CLASS_ENERGY,
|
device_class=DEVICE_CLASS_ENERGY,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
|
||||||
cls=ToonElectricityMeterDeviceSensor,
|
cls=ToonElectricityMeterDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
@@ -287,7 +283,6 @@ SENSOR_ENTITIES: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=DEVICE_CLASS_ENERGY,
|
device_class=DEVICE_CLASS_ENERGY,
|
||||||
state_class=STATE_CLASS_TOTAL_INCREASING,
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
entity_registry_enabled_default=False,
|
|
||||||
cls=ToonElectricityMeterDeviceSensor,
|
cls=ToonElectricityMeterDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
@@ -391,6 +386,7 @@ SENSOR_ENTITIES_SOLAR: tuple[ToonSensorEntityDescription, ...] = (
|
|||||||
measurement="day_produced_solar",
|
measurement="day_produced_solar",
|
||||||
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
native_unit_of_measurement=ENERGY_KILO_WATT_HOUR,
|
||||||
device_class=DEVICE_CLASS_ENERGY,
|
device_class=DEVICE_CLASS_ENERGY,
|
||||||
|
state_class=STATE_CLASS_TOTAL_INCREASING,
|
||||||
cls=ToonSolarDeviceSensor,
|
cls=ToonSolarDeviceSensor,
|
||||||
),
|
),
|
||||||
ToonSensorEntityDescription(
|
ToonSensorEntityDescription(
|
||||||
|
Reference in New Issue
Block a user