This commit is contained in:
Home Assistant Version Control
2026-08-25 14:19:39 +00:00
parent 45bd102a6a
commit e8c2498cf8
17 changed files with 194 additions and 22 deletions
+5
View File
@@ -727,6 +727,11 @@ class TaskMateStorage:
cfg.nav_url = nav_url
self._data.setdefault("notification_config", {})[type_id] = cfg.to_dict()
def set_notification_group(self, type_id: str, group: str) -> None:
cfg = self.get_notification_config(type_id)
cfg.group = group
self._data.setdefault("notification_config", {})[type_id] = cfg.to_dict()
def set_notification_route(self, type_id: str, recipient_id: str, route: NotificationRoute) -> None:
cfg = self.get_notification_config(type_id)
cfg.routes[recipient_id] = route