Hide auto groups from logbook

pull/446/merge
Paulus Schoutsen 2015-09-23 23:20:12 -07:00
parent 20bf9f7ea1
commit 19705ab40a
1 changed files with 5 additions and 3 deletions

View File

@ -162,10 +162,12 @@ def humanify(events):
to_state = State.from_dict(event.data.get('new_state'))
# if last_changed == last_updated only attributes have changed
# we do not report on that yet.
# if last_changed != last_updated only attributes have changed
# we do not report on that yet. Also filter auto groups.
if not to_state or \
to_state.last_changed != to_state.last_updated:
to_state.last_changed != to_state.last_updated or \
to_state.domain == 'group' and \
to_state.attributes.get('auto', False):
continue
domain = to_state.domain