From ea853a05a2235cd989c845fa3dc70b0029e2ff2f Mon Sep 17 00:00:00 2001 From: Jules Dejaeghere Date: Sat, 23 Dec 2023 21:08:46 +0100 Subject: [PATCH] Fix lines for PEP8 --- custom_components/irm_kmi/const.py | 2 +- custom_components/irm_kmi/weather.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_components/irm_kmi/const.py b/custom_components/irm_kmi/const.py index 34b0b6c..a5f0c41 100644 --- a/custom_components/irm_kmi/const.py +++ b/custom_components/irm_kmi/const.py @@ -72,4 +72,4 @@ IRM_KMI_TO_HA_CONDITION_MAP = { (26, 'n'): ATTR_CONDITION_FOG, (27, 'd'): ATTR_CONDITION_EXCEPTIONAL, (27, 'n'): ATTR_CONDITION_EXCEPTIONAL -} \ No newline at end of file +} diff --git a/custom_components/irm_kmi/weather.py b/custom_components/irm_kmi/weather.py index 140aea6..c6de811 100644 --- a/custom_components/irm_kmi/weather.py +++ b/custom_components/irm_kmi/weather.py @@ -40,6 +40,7 @@ class IrmKmiWeather(CoordinatorEntity, WeatherEntity): if datetime.now().strftime('%H') != data['hour']: return None return data + @property def name(self) -> str: return self._name