diff --git a/homeassistant/components/history.py b/homeassistant/components/history.py index 9800a15c16b..5b57c628a19 100644 --- a/homeassistant/components/history.py +++ b/homeassistant/components/history.py @@ -123,8 +123,7 @@ def get_states(hass, utc_point_in_time, entity_ids=None, run=None, func.max(States.state_id).label('max_state_id') ).filter( (States.created >= run.start) & - (States.created < utc_point_in_time) & - (~States.domain.in_(IGNORE_DOMAINS))) + (States.created < utc_point_in_time)) if filters: most_recent_state_ids = filters.apply(most_recent_state_ids,