Allow confirming local push notifications (#54947)
* Allow confirming local push notifications * Fix from Zac * Add tests
This commit is contained in:
parent
f77e93ceeb
commit
677abcd484
7 changed files with 397 additions and 104 deletions
|
@ -104,8 +104,8 @@ class ActiveConnection:
|
|||
self.last_id = cur_id
|
||||
|
||||
@callback
|
||||
def async_close(self) -> None:
|
||||
"""Close down connection."""
|
||||
def async_handle_close(self) -> None:
|
||||
"""Handle closing down connection."""
|
||||
for unsub in self.subscriptions.values():
|
||||
unsub()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue