'Return the iteration over all the states.'

def __iter__(self):

    return iter(sorted((state for state in self._hass.states.async_all() if (state.domain == self._domain)), key=(lambda state: state.entity_id)))
