Hi geeks,
I’ve installed HA 0.62.1 successfully via Termux. By the way, the Broadlink component did not work as usual.
I’ve already checked and updated the latest verison of Python & pycrypto lib. The configuration.yaml file is also correct.
Has anyone got the similar situation like this?
Thank you.
Here is brief of log:
2018-01-31 19:00:49 WARNING (Recorder) [homeassistant.components.recorder] Ended unfinished session (id=14 from 2018-01-31 18:43:00.681727)
2018-01-31 19:00:52 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform broadlink
Traceback (most recent call last):
File "/data/com.termux/files/usr/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 189, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
File "/data/com.termux/files/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/data/com.termux/files/usr/lib/python3.6/asyncio/futures.py", line 243, in result
raise self._exception
File "/data/com.termux/files/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/data/com.termux/files/usr/lib/python3.6/site-packages/homeassistant/components/switch/broadlink.py", line 176, in setup_platform
broadlink_device.auth()
File "/data/com.termux/files/home/.homeassistant/deps/lib/python3.6/site-packages/broadlink/__init__.py", line 203, in auth
response = self.send_packet(0x65, payload)
File "/data/com.termux/files/home/.homeassistant/deps/lib/python3.6/site-packages/broadlink/__init__.py", line 258, in send_packet
payload = self.encrypt(payload)
File "/data/com.termux/files/home/.homeassistant/deps/lib/python3.6/site-packages/broadlink/__init__.py", line 162, in encrypt_pyaes
return "".join([aes.encrypt(bytes(payload[i:i+16])) for i in range(0, len(payload), 16)])
TypeError: sequence item 0: expected str instance, bytes found