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).
pull/28522/head
Oscar Tin Lai 2019-11-04 21:10:59 +11:00 committed by Fabian Affolter
parent fadb9bdfb3
commit 6004ef3279
1 changed files with 7 additions and 7 deletions

View File

@ -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
)