1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

API Call Service returns states changed

This commit is contained in:
Paulus Schoutsen
2014-12-14 00:35:16 -08:00
parent b091e9c31c
commit 5e8673fc4a
7 changed files with 72 additions and 43 deletions

View File

@@ -96,7 +96,7 @@ def setup(hass, config):
# ent_ids is a generator, convert it to a list.
data[ATTR_ENTITY_ID] = list(ent_ids)
hass.services.call(domain, service.service, data)
hass.services.call(domain, service.service, data, True)
hass.services.register(ha.DOMAIN, SERVICE_TURN_OFF, handle_turn_service)
hass.services.register(ha.DOMAIN, SERVICE_TURN_ON, handle_turn_service)