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
parent
fadb9bdfb3
commit
6004ef3279
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue