mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Fix state class for tariff sensor in Overkiz (#143234)
This commit is contained in:
parent
4c14184111
commit
5541de2bcb
@ -215,7 +215,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF2,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF2,
|
||||||
@ -224,7 +224,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF3,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF3,
|
||||||
@ -233,7 +233,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF4,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF4,
|
||||||
@ -242,7 +242,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF5,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF5,
|
||||||
@ -251,7 +251,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF6,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF6,
|
||||||
@ -260,7 +260,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF7,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF7,
|
||||||
@ -269,7 +269,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF8,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF8,
|
||||||
@ -278,7 +278,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
key=OverkizState.CORE_CONSUMPTION_TARIFF9,
|
key=OverkizState.CORE_CONSUMPTION_TARIFF9,
|
||||||
@ -287,7 +287,7 @@ SENSOR_DESCRIPTIONS: list[OverkizSensorDescription] = [
|
|||||||
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
# core:MeasuredValueType = core:ElectricalEnergyInWh
|
||||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
# HumiditySensor/RelativeHumiditySensor
|
# HumiditySensor/RelativeHumiditySensor
|
||||||
OverkizSensorDescription(
|
OverkizSensorDescription(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user