From 4904207f774a39a92f38eb68fa0a4fdb2dda9e4b Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Tue, 2 Mar 2021 16:58:02 +0100 Subject: [PATCH] Fix izone flake8 error (#47276) --- homeassistant/components/izone/climate.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index 5f00720ae9d..ef054bcfb29 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -612,14 +612,6 @@ class ZoneDevice(ClimateEntity): """Return the maximum air flow.""" return self._zone.airflow_max - @property - def device_state_attributes(self): - """Return the optional state attributes.""" - return { - "airflow_min": self._zone.airflow_min, - "airflow_max": self._zone.airflow_max, - } - async def async_set_airflow_min(self, **kwargs): """Set new airflow minimum.""" await self._controller.wrap_and_catch( @@ -675,5 +667,7 @@ class ZoneDevice(ClimateEntity): def device_state_attributes(self): """Return the optional state attributes.""" return { + "airflow_max": self._zone.airflow_max, + "airflow_min": self._zone.airflow_min, "zone_index": self.zone_index, }