From ad38a5b2d5d8d47f76401a8ded67af463c10ed12 Mon Sep 17 00:00:00 2001 From: Paul Frank Date: Mon, 1 Apr 2024 19:31:41 +0000 Subject: [PATCH] fix ruff errors --- custom_components/stiebel_eltron_isg/sensor.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/custom_components/stiebel_eltron_isg/sensor.py b/custom_components/stiebel_eltron_isg/sensor.py index 2cc9274..7382ae6 100644 --- a/custom_components/stiebel_eltron_isg/sensor.py +++ b/custom_components/stiebel_eltron_isg/sensor.py @@ -320,11 +320,11 @@ def create_volume_stream_entity_description(name, key): ENERGY_SENSOR_TYPES = [ create_daily_energy_entity_description( - "Produced Heating Today", + "Produced Heating Today", PRODUCED_HEATING_TODAY, ), create_energy_entity_description( - "Produced Heating Total", + "Produced Heating Total", PRODUCED_HEATING_TOTAL, ), create_energy_entity_description( @@ -340,15 +340,15 @@ def create_volume_stream_entity_description(name, key): PRODUCED_WATER_HEATING_TOTAL, ), create_energy_entity_description( - "Produced Water Heating", + "Produced Water Heating", PRODUCED_WATER_HEATING ), create_daily_energy_entity_description( - "Consumed Heating Today", + "Consumed Heating Today", CONSUMED_HEATING_TODAY, ), create_energy_entity_description( - "Consumed Heating Total", + "Consumed Heating Total", CONSUMED_HEATING_TOTAL, ), create_energy_entity_description( @@ -552,14 +552,14 @@ def native_value(self): def available(self) -> bool: """Return True if entity is available.""" return self.coordinator.data.get(self.entity_description.key) is not None - + @property def last_reset(self): - """Set Last Reset to now, if value is 0""" + """Set Last Reset to now, if value is 0.""" value = self.coordinator.data.get(self.entity_description.key) if value is not None and value == 0: return dt_util.utcnow() else: return None - +