Hello
I want to run this script , its supposed to call the script N times depends on the number of options in the input_select. I’m getting the following error:
Error executing script: ‘NoneType’ object is not callable
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/homeassistant/components/python_script.py", line 166, in execute
exec(compiled.code, restricted_globals, local)
File "control.py", line 5, in <module>
TypeError: 'NoneType' object is not callable
My python script:
cortinas = hass.states.get('input_select.chooser').attributes['options']
Selected = []
for e in cortinas:
Selected.set(e)
option_select = {'entity_id': 'script.control_chooser','variables': Selected }
hass.services.call('script','turn_on',option_select)
Any Idea??
Thanks in advanced