mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Changing handling for google_assistant groups to treat them as lights. (#10111)
* Fixed aliases warning message * Fixed test cases * Changing handling for google_assistant groups to treat them as lights - amending to include user info. * Enable brightness, RGB, etc for groups in Google Assistant * Revert color/hue/temp settings * Change servce from light to homeassistant * Fixed config_units * Convert from light to switch * Change group to switch * Update tests to switch instead of light for group
This commit is contained in:
@@ -133,6 +133,8 @@ class GoogleAssistantView(HomeAssistantView):
|
||||
(service, service_data) = determine_service(
|
||||
eid, execution.get('command'), execution.get('params'),
|
||||
hass.config.units)
|
||||
if domain == "group":
|
||||
domain = "homeassistant"
|
||||
success = yield from hass.services.async_call(
|
||||
domain, service, service_data, blocking=True)
|
||||
result = {"ids": [eid], "states": {}}
|
||||
|
||||
Reference in New Issue
Block a user