mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix izone flake8 error (#47276)
This commit is contained in:
parent
2ebca88950
commit
4904207f77
@ -612,14 +612,6 @@ class ZoneDevice(ClimateEntity):
|
|||||||
"""Return the maximum air flow."""
|
"""Return the maximum air flow."""
|
||||||
return self._zone.airflow_max
|
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):
|
async def async_set_airflow_min(self, **kwargs):
|
||||||
"""Set new airflow minimum."""
|
"""Set new airflow minimum."""
|
||||||
await self._controller.wrap_and_catch(
|
await self._controller.wrap_and_catch(
|
||||||
@ -675,5 +667,7 @@ class ZoneDevice(ClimateEntity):
|
|||||||
def device_state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the optional state attributes."""
|
"""Return the optional state attributes."""
|
||||||
return {
|
return {
|
||||||
|
"airflow_max": self._zone.airflow_max,
|
||||||
|
"airflow_min": self._zone.airflow_min,
|
||||||
"zone_index": self.zone_index,
|
"zone_index": self.zone_index,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user