Allow setting climate devices to AUTO mode via Google Assistant (#11923)

* Allow setting climate devices to AUTO mode via Google Assistant

* Remove cast to lower

* Clarify const name
This commit is contained in:
Paulus Schoutsen authored and Pascal Vizeli committed 2018-01-26 12:37:06 +01:00
1 parent deb10a1c4d
commit 390b727869
4 files changed
+29 -22

No files matched your search

@@ -18,7 +18,8 @@ DEFAULT_EXPOSE_BY_DEFAULT = True
DEFAULT_EXPOSED_DOMAINS = [
'switch', 'light', 'group', 'media_player', 'fan', 'cover', 'climate'
]
CLIMATE_SUPPORTED_MODES = {'heat', 'cool', 'off', 'on', 'heatcool'}
CLIMATE_MODE_HEATCOOL = 'heatcool'
CLIMATE_SUPPORTED_MODES = {'heat', 'cool', 'off', 'on', CLIMATE_MODE_HEATCOOL}
PREFIX_TRAITS = 'action.devices.traits.'
TRAIT_ONOFF = PREFIX_TRAITS + 'OnOff'