Fixed for version 0.67.1 which uses the new broadlink 0.8 library.
Canceled the use of the custom broadlink 0.6 library (If you’re updating from the previous version, please make sure there is no broadlink folder in your /config/deps folder).
Fix unnecessary log writes of repeated time outs (@Marc_R this one is for you )
@roberto87@imperialjoy
Sorry it took me so long to reply.
I hope you got the component working.
If not, please try the new version.
If it still doesn’t work please reply with log details and I’ll do my best to help.
Thank you so much. I will try tonight. By the way the old one is working fine for me. The only problem is that if I restart HA. The status will show unknown. So I have to turn on then off the alarm to get the new status of the alarm.
For those who got this error
> 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/asyncio/tasks.py", line 239, in _step
result = coro.send(None)
File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
res = func(*args, **kw)
File "/home/homeassistant/.homeassistant/custom_components/sensor/broadlink_s1c.py", line 91, in async_setup_platform
conn_obj = HubConnection(ip_address, mac_addr, timeout)
File "/home/homeassistant/.homeassistant/custom_components/sensor/broadlink_s1c.py", line 172, in __init__
self._hub = broadlink.S1C((ip_addr, 80), mac_addr)
File "/srv/homeassistant/lib/python3.5/site-packages/broadlink/__init__.py", line 753, in __init__
TypeError: __init__() missing 1 required positional argument: 'devtype'
To fix it, I’ve download last version of the fantastic python script of @TomerFi put it in its custom folder and then I deleted the file: custom_components/sensor/__pycache__/broadlink_s1c.cpython-35.pyc