mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
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
@ -19,8 +19,6 @@ DEFAULT_EXPOSED_DOMAINS = [
|
|||||||
'media_player', 'scene', 'script', 'switch', 'vacuum', 'lock',
|
'media_player', 'scene', 'script', 'switch', 'vacuum', 'lock',
|
||||||
]
|
]
|
||||||
DEFAULT_ALLOW_UNLOCK = False
|
DEFAULT_ALLOW_UNLOCK = False
|
||||||
CLIMATE_MODE_HEATCOOL = 'heatcool'
|
|
||||||
CLIMATE_SUPPORTED_MODES = {'heat', 'cool', 'off', 'on', CLIMATE_MODE_HEATCOOL}
|
|
||||||
|
|
||||||
PREFIX_TYPES = 'action.devices.types.'
|
PREFIX_TYPES = 'action.devices.types.'
|
||||||
TYPE_LIGHT = PREFIX_TYPES + 'LIGHT'
|
TYPE_LIGHT = PREFIX_TYPES + 'LIGHT'
|
||||||
|
@ -518,6 +518,9 @@ class TemperatureSettingTrait(_Trait):
|
|||||||
climate.STATE_COOL: 'cool',
|
climate.STATE_COOL: 'cool',
|
||||||
climate.STATE_OFF: 'off',
|
climate.STATE_OFF: 'off',
|
||||||
climate.STATE_AUTO: 'heatcool',
|
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()}
|
google_to_hass = {value: key for key, value in hass_to_google.items()}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user