Traceback (most recent call last):


 "/usr/lib/python3.6/site-packages/schemainspect/misc.py", line 9, in connection_from_s_or_c

s_or_c.engine
AttributeError: 'Session' object has no attribute 'engine'

Traceback (most recent call last):


 "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step

result = coro.send(None)


 "/srv/hass/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 399, in async_process_entity

new_entity, self, update_before_add=update_before_add


 "/srv/hass/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 247, in async_add_entity

yield from entity.async_update_ha_state()


 "/srv/hass/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 210, in async_update_ha_state

state = self.state


 "/srv/hass/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 360, in state

return STATE_ON if self.is_on else STATE_OFF


 "/srv/hass/lib/python3.6/site-packages/homeassistant/components/switch/wink.py", line 51, in is_on

return self.wink.state()


 "/srv/hass/lib/python3.6/site-packages/pywink/devices/binary_switch_group.py", line 13, in state

return bool(self.state_true_count() != 0)


 "/srv/hass/lib/python3.6/site-packages/pywink/devices/binary_switch_group.py", line 19, in state_true_count

return self.reading_aggregation().get("powered").get("true_count")
AttributeError: 'NoneType' object has no attribute 'get'
