@@ -99,7 +99,6 @@ def __init__(
9999 self ._data_worker_task : Task [None ] | None = None
100100
101101 # Message processing
102- self ._processed_msgs = 0
103102 self ._message_queue : PriorityQueue [PlugwiseResponse ] = PriorityQueue ()
104103 self ._last_processed_messages : list [bytes ] = []
105104 self ._current_seq_id : bytes | None = None
@@ -138,20 +137,11 @@ def connection_lost(self, exc: Exception | None = None) -> None:
138137 self ._transport = None
139138 self ._connection_state = False
140139
141- @property
142- def processed_messages (self ) -> int :
143- """Return the number of processed messages."""
144- return self ._processed_msgs
145-
146140 @property
147141 def is_connected (self ) -> bool :
148142 """Return current connection state of the USB-Stick."""
149143 return self ._connection_state
150144
151- def correct_processed_messages (self , correction : int ) -> None :
152- """Correct the number of processed messages."""
153- self ._processed_msgs += correction
154-
155145 def connection_made (self , transport : SerialTransport ) -> None :
156146 """Call when the serial connection to USB-Stick is established."""
157147 _LOGGER .info ("Connection made" )
@@ -291,7 +281,6 @@ async def _message_queue_worker(self) -> None:
291281 await self ._notify_stick_subscribers (response )
292282 else :
293283 await self ._notify_node_response_subscribers (response )
294- self ._processed_msgs += 1
295284 self ._message_queue .task_done ()
296285 await sleep (0 )
297286 _LOGGER .debug ("Message queue worker stopped" )
0 commit comments