Skip to content

Commit

Permalink
Fix event callbacks to use async variants (#21)
Browse files Browse the repository at this point in the history
* Fix event callbacks to use async variants

* Update required version
  • Loading branch information
rytilahti authored Jan 12, 2023
1 parent f944031 commit e2c1b78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion custom_components/upnp_availability/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"documentation": "https://github.com/rytilahti/homeassistant-upnp-availability/",
"issue_tracker": "https://github.com/rytilahti/homeassistant-upnp-availability/issues",
"requirements": [
"async_upnp_client>=0.32"
"async_upnp_client>=0.33"
],
"dependencies": ["network"],
"version": "0.0.3",
Expand Down
6 changes: 3 additions & 3 deletions custom_components/upnp_availability/upnpstatustracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,9 @@ async def listen(self):

for srcip in self.source_addresses:
self.listeners[srcip] = listener = SsdpAdvertisementListener(
on_alive=self.handle_alive,
on_byebye=self.handle_bye,
on_update=self.handle_update,
async_on_alive=self.handle_alive,
async_on_byebye=self.handle_bye,
async_on_update=self.handle_update,
)
await listener.async_start()

Expand Down

0 comments on commit e2c1b78

Please sign in to comment.