Skip to content

Commit

Permalink
fix async_dispatcher_send and async_handle_message arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler committed Aug 21, 2024
1 parent f539dd7 commit 3bdd21f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/leafspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async def get(self, request):
if not hmac.compare_digest(message['pass'], context.secret):
raise Exception("Invalid password")

async_dispatcher_send(DOMAIN, hass, context, message)
async_dispatcher_send(hass, DOMAIN, context, message)

return Response(status=200, text='"status":"0"')
except Exception: # pylint: disable=broad-except
Expand Down
2 changes: 1 addition & 1 deletion custom_components/leafspy/device_tracker.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _parse_see_args(message):
return args


async def async_handle_message(hass, context, message):
async def async_handle_message(context, message):
"""Handle an Leaf Spy message."""
_LOGGER.debug("Received %s", message)

Expand Down

0 comments on commit 3bdd21f

Please sign in to comment.