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