From 6004ef3279ce5ce0dc29ed5a049196bf0f7c21df Mon Sep 17 00:00:00 2001 From: Oscar Tin Lai Date: Mon, 4 Nov 2019 21:10:59 +1100 Subject: [PATCH] Expose set auto mode for all Dyson fans (#28488) Set auto mode should be exposed to all dyson fans (e.g. *Pure Cool Link* and *Pure Hot+Cool Link*) instead of only *Pure Cool*, as it is support in all of the models (i.e. similar to the set night mode). --- homeassistant/components/dyson/fan.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/dyson/fan.py b/homeassistant/components/dyson/fan.py index 0165044b839..341919935d0 100644 --- a/homeassistant/components/dyson/fan.py +++ b/homeassistant/components/dyson/fan.py @@ -151,14 +151,14 @@ def setup_platform(hass, config, add_entities, discovery_info=None): service_handle, schema=DYSON_SET_NIGHT_MODE_SCHEMA, ) - if has_purecool_devices: - hass.services.register( - DYSON_DOMAIN, - SERVICE_SET_AUTO_MODE, - service_handle, - schema=SET_AUTO_MODE_SCHEMA, - ) + hass.services.register( + DYSON_DOMAIN, + SERVICE_SET_AUTO_MODE, + service_handle, + schema=SET_AUTO_MODE_SCHEMA, + ) + if has_purecool_devices: hass.services.register( DYSON_DOMAIN, SERVICE_SET_ANGLE, service_handle, schema=SET_ANGLE_SCHEMA )