Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 217, in async_add_entity

yield from entity.async_device_update(warning=False)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update

yield from self.hass.async_add_job(self.update)


 "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__

yield self
# This tells Task to wait for completion.


 "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup

value = future.result()


 "/usr/lib/python3.4/asyncio/futures.py", line 277, in result

raise self._exception


 "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run

result = self.fn(*self.args, **self.kwargs)


 "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/cover/tahoma.py", line 37, in update

self.controller.get_states([self.tahoma_device])


 "/srv/homeassistant/lib/python3.4/site-packages/tahoma_api/tahoma_api.py", line 567, in get_states

json_data = self._create_get_state_request(devices)


 "/srv/homeassistant/lib/python3.4/site-packages/tahoma_api/tahoma_api.py", line 605, in _create_get_state_request

for state_name in sorted(device.active_states.keys()):


 "/srv/homeassistant/lib/python3.4/site-packages/tahoma_api/tahoma_api.py", line 746, in active_states

return self.__active_states
AttributeError: 'Device' object has no attribute '_Device__active_states'

Traceback (most recent call last):


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/io.py", line 65, in wrapper

return f(*args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/io.py", line 292, in parse_pyi

ast = loader.finish_and_verify_ast(ast)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/load_pytd.py", line 436, in finish_and_verify_ast

self._verify_pyi(ast)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/load_pytd.py", line 363, in _verify_pyi

pyval.Visit(visitors.VerifyContainers())


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 213, in Visit

return _Visit(self, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 241, in _Visit

return _VisitNode(node, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 325, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 292, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 325, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 292, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 325, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 292, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 325, in _VisitNode

new_child = _VisitNode(child, visitor, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/parse/node.py", line 314, in _VisitNode

status = visitor.Enter(node, *args, **kwargs)


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/pytd_visitors.py", line 179, in Enter

return self.enter_functions[node.__class__.__name__](


 "/home/akuli/typeshed/env/lib/python3.8/site-packages/pytype/pytd/visitors.py", line 1409, in EnterGenericType

if not pytd.IsContainer(base_type.cls):
AttributeError: 'UnionType' object has no attribute 'cls'
