Merge pull request from persandstrom/dict_size_change_during_iteration

Fixed intermittent error during setup
This commit is contained in:
Paulus Schoutsen 2016-02-13 22:28:46 -08:00
commit 39bbfd14d9

View file

@ -404,6 +404,7 @@ class StateMachine(object):
domain_filter = domain_filter.lower() domain_filter = domain_filter.lower()
with self._lock:
return [state.entity_id for state in self._states.values() return [state.entity_id for state in self._states.values()
if state.domain == domain_filter] if state.domain == domain_filter]