It was working an hour ago, updated now, and I get an error on startup.
Config.yaml
switch:
- platform: broadlink
host: 192.168.0.123
mac: '11:22:34:d1:33:44'
type: mp1
friendly_name: Broadlink
slots:
slot_1: 'Slot 1'
slot_2: 'Slot 2'
slot_3: 'Slot 3'
slot_4: 'Slot 4'
Log Details (ERROR)
Sat Apr 14 2018 09:03:53 GMT+0200
Error while setting up platform broadlink
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 82, in async_setup
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/lib/python3.5/asyncio/tasks.py", line 400, in wait_for
return fut.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/broadlink.py", line 173, in setup_platform
broadlink_device, i, parent_device)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/broadlink.py", line 316, in __init__
super().__init__(friendly_name, device, None, None)
TypeError: __init__() missing 1 required positional argument: 'command_off'