Allow confirming local push notifications (#54947)

* Allow confirming local push notifications

* Fix from Zac

* Add tests
This commit is contained in:
Paulus Schoutsen 2021-09-22 14:17:04 -07:00 committed by GitHub
parent f77e93ceeb
commit 677abcd484
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 397 additions and 104 deletions

View file

@ -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()