mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
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
This commit is contained in:
parent
6f2ed86c49
commit
9a5132054f
@ -257,7 +257,7 @@ class DysonPureCoolLinkDevice(FanEntity):
|
|||||||
def is_on(self):
|
def is_on(self):
|
||||||
"""Return true if the entity is on."""
|
"""Return true if the entity is on."""
|
||||||
if self._device.state:
|
if self._device.state:
|
||||||
return self._device.state.fan_mode == "FAN"
|
return self._device.state.fan_mode in ["FAN", "AUTO"]
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user