Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/setup.py", line 191, in _async_setup_component

result = await task


 "/config/custom_components/sonoff/__init__.py", line 102, in async_setup

if await registry.cloud_login(config[CONF_USERNAME],


 "/config/custom_components/sonoff/sonoff_main.py", line 110, in cloud_login

return await self.cloud.login(username, password)


 "/config/custom_components/sonoff/sonoff_cloud.py", line 282, in login

if resp.get('error') == 406:
AttributeError: 'NoneType' object has no attribute 'get'`

Traceback (most recent call last):


 "D:\tools\XX-Net-3.7.9\code\default\python27\1.0\lib\threading.py", line 801, in __bootstrap_inner

self.run()


 "D:\tools\XX-Net-3.7.9\code\default\python27\1.0\lib\threading.py", line 754, in run

self.__target(*self.__args, **self.__kwargs)


 "D:\tools\XX-Net-3.7.9\code\default\gae_proxy\local\google_ip.py", line 652, in scan_ip_worker

xlog.exception("google_ip.runJob fail:%r", e)
AttributeError: 'NoneType' object has no attribute 'exception'
