mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Remove force_update from all DSMR entities (#104037)
Remove force_update
This commit is contained in:
parent
e10c5246b9
commit
86f87262ed
@ -82,7 +82,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="current_electricity_usage",
|
translation_key="current_electricity_usage",
|
||||||
obis_reference=obis_references.CURRENT_ELECTRICITY_USAGE,
|
obis_reference=obis_references.CURRENT_ELECTRICITY_USAGE,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
force_update=True,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -90,7 +89,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="current_electricity_delivery",
|
translation_key="current_electricity_delivery",
|
||||||
obis_reference=obis_references.CURRENT_ELECTRICITY_DELIVERY,
|
obis_reference=obis_references.CURRENT_ELECTRICITY_DELIVERY,
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
force_update=True,
|
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -108,7 +106,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference=obis_references.ELECTRICITY_USED_TARIFF_1,
|
obis_reference=obis_references.ELECTRICITY_USED_TARIFF_1,
|
||||||
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
force_update=True,
|
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -116,7 +113,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="electricity_used_tariff_2",
|
translation_key="electricity_used_tariff_2",
|
||||||
obis_reference=obis_references.ELECTRICITY_USED_TARIFF_2,
|
obis_reference=obis_references.ELECTRICITY_USED_TARIFF_2,
|
||||||
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -125,7 +121,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="electricity_delivered_tariff_1",
|
translation_key="electricity_delivered_tariff_1",
|
||||||
obis_reference=obis_references.ELECTRICITY_DELIVERED_TARIFF_1,
|
obis_reference=obis_references.ELECTRICITY_DELIVERED_TARIFF_1,
|
||||||
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -134,7 +129,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="electricity_delivered_tariff_2",
|
translation_key="electricity_delivered_tariff_2",
|
||||||
obis_reference=obis_references.ELECTRICITY_DELIVERED_TARIFF_2,
|
obis_reference=obis_references.ELECTRICITY_DELIVERED_TARIFF_2,
|
||||||
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
dsmr_versions={"2.2", "4", "5", "5B", "5L"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -334,7 +328,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="electricity_imported_total",
|
translation_key="electricity_imported_total",
|
||||||
obis_reference=obis_references.ELECTRICITY_IMPORTED_TOTAL,
|
obis_reference=obis_references.ELECTRICITY_IMPORTED_TOTAL,
|
||||||
dsmr_versions={"5L", "5S", "Q3D"},
|
dsmr_versions={"5L", "5S", "Q3D"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -343,7 +336,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="electricity_exported_total",
|
translation_key="electricity_exported_total",
|
||||||
obis_reference=obis_references.ELECTRICITY_EXPORTED_TOTAL,
|
obis_reference=obis_references.ELECTRICITY_EXPORTED_TOTAL,
|
||||||
dsmr_versions={"5L", "5S", "Q3D"},
|
dsmr_versions={"5L", "5S", "Q3D"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -352,7 +344,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="current_average_demand",
|
translation_key="current_average_demand",
|
||||||
obis_reference=obis_references.BELGIUM_CURRENT_AVERAGE_DEMAND,
|
obis_reference=obis_references.BELGIUM_CURRENT_AVERAGE_DEMAND,
|
||||||
dsmr_versions={"5B"},
|
dsmr_versions={"5B"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -360,7 +351,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
translation_key="maximum_demand_current_month",
|
translation_key="maximum_demand_current_month",
|
||||||
obis_reference=obis_references.BELGIUM_MAXIMUM_DEMAND_MONTH,
|
obis_reference=obis_references.BELGIUM_MAXIMUM_DEMAND_MONTH,
|
||||||
dsmr_versions={"5B"},
|
dsmr_versions={"5B"},
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.POWER,
|
device_class=SensorDeviceClass.POWER,
|
||||||
),
|
),
|
||||||
DSMRSensorEntityDescription(
|
DSMRSensorEntityDescription(
|
||||||
@ -369,7 +359,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference=obis_references.HOURLY_GAS_METER_READING,
|
obis_reference=obis_references.HOURLY_GAS_METER_READING,
|
||||||
dsmr_versions={"4", "5", "5L"},
|
dsmr_versions={"4", "5", "5L"},
|
||||||
is_gas=True,
|
is_gas=True,
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.GAS,
|
device_class=SensorDeviceClass.GAS,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -379,7 +368,6 @@ SENSORS: tuple[DSMRSensorEntityDescription, ...] = (
|
|||||||
obis_reference=obis_references.GAS_METER_READING,
|
obis_reference=obis_references.GAS_METER_READING,
|
||||||
dsmr_versions={"2.2"},
|
dsmr_versions={"2.2"},
|
||||||
is_gas=True,
|
is_gas=True,
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.GAS,
|
device_class=SensorDeviceClass.GAS,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
@ -405,7 +393,6 @@ def add_gas_sensor_5B(telegram: dict[str, DSMRObject]) -> DSMRSensorEntityDescri
|
|||||||
obis_reference=ref,
|
obis_reference=ref,
|
||||||
dsmr_versions={"5B"},
|
dsmr_versions={"5B"},
|
||||||
is_gas=True,
|
is_gas=True,
|
||||||
force_update=True,
|
|
||||||
device_class=SensorDeviceClass.GAS,
|
device_class=SensorDeviceClass.GAS,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user