Google_assistant: fix climate modes (#19084)
* home-assistant/home-assistant#18645: Fix climate mode mapping. * home-assistant/home-assistant#18645: Remove un-used constants. * home-assistant/home-assistant#18645: revert heat-cool -> auto change
This commit is contained in:
commit
802497b05c
2 changed files with 3 additions and 2 deletions
|
@ -19,8 +19,6 @@ DEFAULT_EXPOSED_DOMAINS = [
|
|||
'media_player', 'scene', 'script', 'switch', 'vacuum', 'lock',
|
||||
]
|
||||
DEFAULT_ALLOW_UNLOCK = False
|
||||
CLIMATE_MODE_HEATCOOL = 'heatcool'
|
||||
CLIMATE_SUPPORTED_MODES = {'heat', 'cool', 'off', 'on', CLIMATE_MODE_HEATCOOL}
|
||||
|
||||
PREFIX_TYPES = 'action.devices.types.'
|
||||
TYPE_LIGHT = PREFIX_TYPES + 'LIGHT'
|
||||
|
|
|
@ -518,6 +518,9 @@ class TemperatureSettingTrait(_Trait):
|
|||
climate.STATE_COOL: 'cool',
|
||||
climate.STATE_OFF: 'off',
|
||||
climate.STATE_AUTO: 'heatcool',
|
||||
climate.STATE_FAN_ONLY: 'fan-only',
|
||||
climate.STATE_DRY: 'dry',
|
||||
climate.STATE_ECO: 'eco'
|
||||
}
|
||||
google_to_hass = {value: key for key, value in hass_to_google.items()}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue