Skip to content

Commit

Permalink
fixed warning lights.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aysylu committed Apr 29, 2024
1 parent 07a031d commit b5b3420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def match(service_data):

@ad.app_lock
def service_snoop(self, event_name, data, kwargs):
if data['domain'] != 'light' and data['domain'] != 'button' and data['domain'] != 'input_boolean':
if 'domain' not in data or data['domain'] != 'light' and data['domain'] != 'button' and data['domain'] != 'input_boolean':
return
#print(f"service snooped {data}")
endogenous = data['metadata']['context']['user_id'] == self.user_id
Expand Down

0 comments on commit b5b3420

Please sign in to comment.