Skip to content

Commit

Permalink
Merge pull request #120 from bdraco/ignore_test_messages
Browse files Browse the repository at this point in the history
Ignore connectivity test push messages
  • Loading branch information
sbidy authored Feb 10, 2022
2 parents 4797faa + ac69a1d commit 0b11c5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywizlight/push_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def _cancel():
def _on_push(self, message: bytes, addr: Tuple[str, int]) -> None:
"""Handle a response from the device."""
_LOGGER.debug("%s: PUSH << %s", addr, message)
if message == b"test":
return # App sends these to test connectivity
try:
resp = json.loads(message.decode())
except json.JSONDecodeError:
Expand Down

0 comments on commit 0b11c5f

Please sign in to comment.