change formatting a bit, and add async close method

This commit is contained in:
Mikhail Epifanov
2024-01-13 13:43:08 +01:00
parent c7dd61e239
commit 87ede4b9cc
3 changed files with 36 additions and 11 deletions

View File

@@ -16,5 +16,9 @@ class Connector(ABC):
async def on_shopping_list_entry_deleted(self, space: Space, instance: ShoppingListEntry) -> None:
pass
@abstractmethod
async def close(self) -> None:
pass
# TODO: Maybe add an 'IsEnabled(self) -> Bool' to here
# TODO: Add Recipes & possibly Meal Place listeners/hooks (And maybe more?)