Skip to content

Commit 73f8d5c

Browse files
committed
doc: improve comments and errors
1 parent da54ffc commit 73f8d5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __init__( # noqa: PLR0915, PLR0913, Too many statements, Too many arguments
240240
self._lw_msg = None
241241
self._lw_retain = False
242242

243-
# List of subscribed topics, used for tracking
243+
# List of subscribed topics and the QoS for each, used for tracking
244244
self._subscribed_topics: List[tuple[str, int]] = []
245245
self._on_message_filtered = MQTTMatcher()
246246

@@ -1196,7 +1196,7 @@ def _valid_qos(qos_level: int) -> None:
11961196
"""
11971197
if isinstance(qos_level, int):
11981198
if qos_level < 0 or qos_level > 2:
1199-
raise NotImplementedError("QoS must be between 1 and 2.")
1199+
raise NotImplementedError("QoS must be between 0 and 2.")
12001200
else:
12011201
raise ValueError("QoS must be an integer.")
12021202

0 commit comments

Comments
 (0)