From 98ced4b4e45920af130fa355cfc28830fcff8221 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 22 May 2020 11:54:19 +0200 Subject: [PATCH] Don't push a ZwaveNetworkStoppedEvent directly to the event_queue - the object type is incompatible --- platypush/backend/zwave/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/zwave/__init__.py b/platypush/backend/zwave/__init__.py index 60648d632..e08cff62b 100644 --- a/platypush/backend/zwave/__init__.py +++ b/platypush/backend/zwave/__init__.py @@ -152,7 +152,7 @@ class ZwaveBackend(Backend): if event.signal == network.SIGNAL_NETWORK_STOPPED or \ event.signal == network.SIGNAL_DRIVER_REMOVED: - event_queue.put(ZwaveNetworkStoppedEvent(device=self.device)) + event = ZwaveNetworkStoppedEvent(device=self.device) elif event.signal == network.SIGNAL_ALL_NODES_QUERIED or \ event.signal == network.SIGNAL_ALL_NODES_QUERIED_SOME_DEAD: event = ZwaveNodeQueryCompletedEvent(device=self.device)