From be27df34e1eea5fa3eced325962335c306316521 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 29 May 2026 22:15:18 +0200 Subject: [PATCH] refactor(event_bus): wire catalog and events into package, rename builtin to events --- surfsense_backend/app/event_bus/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/surfsense_backend/app/event_bus/__init__.py b/surfsense_backend/app/event_bus/__init__.py index b71cc1b64..da5735fe6 100644 --- a/surfsense_backend/app/event_bus/__init__.py +++ b/surfsense_backend/app/event_bus/__init__.py @@ -9,12 +9,17 @@ Domain-agnostic pub/sub. Producers ``await bus.publish(...)``; subscribers from __future__ import annotations +from . import events # noqa: F401 — populates the event-type catalog from .bus import EventBus, Subscriber, bus +from .catalog import EventCatalog, EventType, catalog from .event import Event __all__ = [ "Event", "EventBus", + "EventCatalog", + "EventType", "Subscriber", "bus", + "catalog", ]