Skip to content

Commit 35f8d18

Browse files
committed
doc: improve comments and errors
1 parent 695788b commit 35f8d18

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

@@ -1206,7 +1206,7 @@ def _valid_qos(qos_level: int) -> None:
12061206
"""
12071207
if isinstance(qos_level, int):
12081208
if qos_level < 0 or qos_level > 2:
1209-
raise NotImplementedError("QoS must be between 1 and 2.")
1209+
raise NotImplementedError("QoS must be between 0 and 2.")
12101210
else:
12111211
raise ValueError("QoS must be an integer.")
12121212

0 commit comments

Comments
 (0)