Traceback (most recent call last):


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 220, in async_update_ha_state

await self.async_device_update()


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity.py", line 377, in async_device_update

await self.hass.async_add_executor_job(self.update)


 "/opt/rh/rh-python36/root/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run

result = self.fn(*self.args, **self.kwargs)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 312, in update

self._state = self._parent_device.get_outlet_status(self._slot)


 "/homeassistant/lib64/python3.6/site-packages/homeassistant/components/broadlink/switch.py", line 325, in get_outlet_status

return self._states['s{}'.format(slot)]
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "C:\Users\USER\AppData\Local\Programs\Python\Python39\Scripts\can_viewer.py", line 14, in <module>

main()


 "c:\users\USER\appdata\local\programs\python\python39\lib\site-packages\can\viewer.py", line 496, in main

curses.wrapper(CanViewer, bus, data_structs)


 "c:\users\USER\appdata\local\programs\python\python39\lib\curses\__init__.py", line 94, in wrapper

return func(stdscr, *args, **kwds)


 "c:\users\USER\appdata\local\programs\python\python39\lib\site-packages\can\viewer.py", line 74, in __init__

self.run()


 "c:\users\USER\appdata\local\programs\python\python39\lib\site-packages\can\viewer.py", line 84, in run

msg = self.bus.recv(timeout=1. / 1000.)


 "c:\users\USER\appdata\local\programs\python\python39\lib\site-packages\can\bus.py", line 83, in recv

msg, already_filtered = self._recv_internal(timeout=time_left)
TypeError: cannot unpack non-iterable NoneType object
