diff --git a/src/meshcore/meshcore.py b/src/meshcore/meshcore.py index ac335cd..ad55b34 100644 --- a/src/meshcore/meshcore.py +++ b/src/meshcore/meshcore.py @@ -105,7 +105,7 @@ class MeshCore: self.dispatcher.running = False self.dispatcher._task.cancel() - def subscribe(self, event_type: EventType, callback, attribute_filters: Optional[Dict[str, Any]] = None): + def subscribe(self, event_type: Union[EventType, None], callback, attribute_filters: Optional[Dict[str, Any]] = None): """ Subscribe to events using EventType enum with optional attribute filtering