Skip to content

Commit

Permalink
Merge pull request #2 from mcdeck/master
Browse files Browse the repository at this point in the history
Fix for cases where 'repeats' is missing from message_dict
  • Loading branch information
DavidLP committed Jan 23, 2017
2 parents 405262f + a52fa6c commit a319404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilight/pilight.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def handle_messages(messages):
# Filter: Only use receiver messages
if 'receiver' in message_dict['origin']:
if self.veto_repeats:
if message_dict['repeats'] == 1:
if message_dict.get('repeats', 1) == 1:
self.callback(message_dict)
else:
self.callback(message_dict)
Expand Down

0 comments on commit a319404

Please sign in to comment.