Starting from 0.83 one of the functions sopped working. Looking at the code - nothing special. Did i miss something in the breaking changes?
The code in question
- alias: Presence Arriving Home Disarm panel
initial_state: 'on'
trigger:
- platform: state
entity_id: group.presence_family
from: 'not_home'
to: 'home'
condition:
condition: state
entity_id: input_boolean.rules_away
state: 'on'
action:
- service: alarm_control_panel.alarm_disarm
entity_id: alarm_control_panel.home
- service: homeassistant.turn_off
entity_id:
- input_boolean.rules_cominghome
- input_boolean.rules_away
And then the error
2018-12-28 18:27:08 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/automation/__init__.py", line 294, in async_trigger
await self._async_action(self.entity_id, variables, context)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/automation/__init__.py", line 378, in action
await script_obj.async_run(variables, context)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 130, in async_run
await self._handle_action(action, variables, context)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 172, in _handle_action
action, variables, context)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/script.py", line 261, in _async_call_service
context=context
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/service.py", line 81, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1121, in async_call
self._execute_service(handler, service_call))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/core.py", line 1143, in _execute_service
await handler.func(service_call)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/script.py", line 94, in turn_off_service
in component.async_extract_from_service(service)], loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 304, in wait
raise ValueError('Set of coroutines/Futures is empty.')
ValueError: Set of coroutines/Futures is empty.