def __iter__(self):
    'Return all states.'
    self._collect_all()
    return _state_generator(self._hass, None)
Return all states.
def __iter__(self):
    
    self._collect_all()
    return _state_generator(self._hass, None)