Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 312, in _async_add_entity

await entity.async_device_update(warning=False)


 "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 474, in async_device_update

await self.async_update()


 "/usr/local/lib/python3.7/site-packages/homeassistant/components/xiaomi_miio/light.py", line 369, in async_update

self._brightness = ceil((255 / 100.0) * state.brightness)
TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'

Traceback (most recent call last):


 "test.py", line 56, in <module>

main()


 "test.py", line 50, in main

c.set_ca_certs(cadata)
TypeError: cadata should be an ASCII string or a bytes-like object
