Skip to content

Commit b21891c

Browse files
committed
Use SimpleQueue
Request message object do not support the required comparisons
1 parent cbbc2ce commit b21891c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
from datetime import datetime, timedelta
1515
import logging
16-
from queue import Empty, PriorityQueue
16+
from queue import Empty, SimpleQueue
1717
import threading
1818
import time
1919

@@ -102,7 +102,7 @@ def connect_to_stick(self, callback=None) -> bool:
102102
if self.connection.connect():
103103
_LOGGER.debug("Starting message controller threads...")
104104
# send daemon
105-
self._send_message_queue = PriorityQueue()
105+
self._send_message_queue = SimpleQueue()
106106
self._send_message_thread_state = True
107107
self._send_message_thread = threading.Thread(
108108
None, self._send_message_loop, "send_messages_thread", (), {}

0 commit comments

Comments
 (0)