From 9a5132054f486a2ccfcd57953c290eb8f9177856 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 25 Dec 2020 08:49:14 -0500 Subject: [PATCH] Support auto as Dyson fan on device state (#44472) * - Make the dyson integration report that the fan is on if its in AUTO or FAN states instead of only in FAN state * - Fix code style issue to be compliant with flake8 --- homeassistant/components/dyson/fan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/dyson/fan.py b/homeassistant/components/dyson/fan.py index 4d9fe2eba2a..ca685f36a13 100644 --- a/homeassistant/components/dyson/fan.py +++ b/homeassistant/components/dyson/fan.py @@ -257,7 +257,7 @@ class DysonPureCoolLinkDevice(FanEntity): def is_on(self): """Return true if the entity is on.""" if self._device.state: - return self._device.state.fan_mode == "FAN" + return self._device.state.fan_mode in ["FAN", "AUTO"] return False @property