Yeelight can now not be conrolled with HA

Hi,

I’m running th latest version of Hassio and since i’ev updated i’ve noticd yeelight causing errors in the logs and I can’t control it via HA either.

Here are the log details:

Log Details (ERROR)
Sat Jan 25 2020 19:09:06 GMT+0000 (Greenwich Mean Time)
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 284, in async_update_ha_state
self._async_write_ha_state()
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 327, in _async_write_ha_state
attr.update(self.state_attributes or {})
File “/usr/src/homeassistant/homeassistant/components/light/init.py”, line 412, in state_attributes
data[ATTR_BRIGHTNESS] = self.brightness
File “/usr/src/homeassistant/homeassistant/components/yeelight/light.py”, line 503, in brightness
return round(255 * (int(self._brightness) / 100))
TypeError: int() argument must be a string, a bytes-like object or a number, not ‘NoneType’

Any ideas?