Don't push a ZwaveNetworkStoppedEvent directly to the event_queue - the object type is incompatible
This commit is contained in:
parent
d6b509e98a
commit
98ced4b4e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue