Traceback (most recent call last):



 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 272, in async_update_ha_state


await self.async_device_update()



 "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 463, in async_device_update


await self.async_update()
# type: ignore



 "/usr/src/homeassistant/homeassistant/components/freebox/switch.py", line 75, in async_update


datas = await self._router.wifi.get_global_config()



 "/usr/src/homeassistant/homeassistant/components/freebox/router.py", line 186, in wifi


return self._api.wifi

AttributeError: 'NoneType' object has no attribute 'wifi'

`Traceback (most recent call last):


 "/home/liam/.virtualenvs/fbchat/local/lib/python2.7/site-packages/fbchat/client.py", line 1360, in _parseMessage

thread_id=thread_id, thread_type=thread_type, ts=ts, metadata=metadata, msg=m)


 "leona.py", line 28, in onMessage

log.info("Message from {} in {} ({}): {}".format(author_id, thread_id, thread_type.name, message))
AttributeError: 'int' object has no attribute 'name'`
