No matter how many times I reboot keep failing … below is the full log
2019-02-11 14:20:21 WARNING (MainThread) [homeassistant.loader] You are using a custom component for sensor.unifigateway which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-02-11 14:20:27 WARNING (SyncWorker_16) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
2019-02-11 14:20:28 ERROR (SyncWorker_16) [custom_components.sensor.unifigateway] Failed to access health info: api.err.NoSiteContext
2019-02-11 14:20:28 WARNING (SyncWorker_19) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
2019-02-11 14:20:29 ERROR (SyncWorker_19) [custom_components.sensor.unifigateway] Failed to access health info: api.err.NoSiteContext
2019-02-11 14:20:30 WARNING (SyncWorker_1) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/init.py”, line 183, in async_setup_platform
disc_info)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 46, in setup_scanner
scanner = GoogleMapsScanner(hass, config, see)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 66, in init
self._update_info()
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/device_tracker/google_maps.py”, line 78, in _update_info
for person in self.service.get_all_people():
File “/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 439, in get_all_people
people = self.get_shared_people() + [self.get_authenticated_person()]
File “/usr/local/lib/python3.6/site-packages/locationsharinglib/locationsharinglib.py”, line 400, in get_shared_people
for info in output[0]:
TypeError: ‘NoneType’ object is not iterable
2019-02-11 14:20:31 ERROR (SyncWorker_1) [custom_components.sensor.unifigateway] Failed to access health info: api.err.NoSiteContext
2019-02-11 14:20:31 WARNING (SyncWorker_0) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
2019-02-11 14:20:32 WARNING (MainThread) [homeassistant.components.sensor] Setup of platform unifigateway is taking over 10 seconds.
2019-02-11 14:20:32 ERROR (SyncWorker_0) [custom_components.sensor.unifigateway] Failed to access health info: api.err.NoSiteContext
2019-02-11 14:20:32 WARNING (SyncWorker_16) [pyunifi.controller] Failed to perform <function Controller._write at 0x72c76540> due to api.err.NoSiteContext
2019-02-11 14:20:33 ERROR (SyncWorker_16) [custom_components.sensor.unifigateway] Failed to access alerts info: api.err.NoSiteContext
2019-02-11 14:20:33 ERROR (MainThread) [homeassistant.components.sensor] unifigateway: Error on device update!
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/util/init.py”, line 315, in wrapper
result = method(*args, **kwargs)
File “/config/custom_components/sensor/unifigateway.py”, line 143, in update
for index, alert in enumerate(unarchived_alerts,start=1):
UnboundLocalError: local variable ‘unarchived_alerts’ referenced before assignment
2019-02-11 14:20:33 WARNING (SyncWorker_7) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
2019-02-11 14:20:34 ERROR (SyncWorker_7) [custom_components.sensor.unifigateway] Failed to scan aps: api.err.NoSiteContext
2019-02-11 14:20:34 ERROR (MainThread) [homeassistant.components.sensor] unifigateway: Error on device update!
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 349, in async_device_update
await self.hass.async_add_executor_job(self.update)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/util/init.py”, line 315, in wrapper
result = method(*args, **kwargs)
File “/config/custom_components/sensor/unifigateway.py”, line 159, in update
for devices in aps:
UnboundLocalError: local variable ‘aps’ referenced before assignment
2019-02-11 14:20:38 ERROR (MainThread) [homeassistant.components.sensor.template] Could not render template CPU: UndefinedError: ‘mappingproxy object’ has no attribute ‘gw_system-stats’
2019-02-11 14:20:38 ERROR (MainThread) [homeassistant.components.sensor.template] Could not render template Memory: UndefinedError: ‘mappingproxy object’ has no attribute ‘gw_system-stats’
2019-02-11 14:20:59 WARNING (SyncWorker_2) [pyunifi.controller] Failed to perform <function Controller._read at 0x72c76468> due to api.err.NoSiteContext
2019-02-11 14:21:00 ERROR (SyncWorker_2) [custom_components.sensor.unifigateway] Failed to access health info: api.err.NoSiteContext