Skip to content

Commit 61ef70f

Browse files
committed
More docstring improvements
1 parent 925ac8d commit 61ef70f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugwise/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ async def connect(self) -> Version | None:
186186
async def _smile_detect(self, result: etree, dsmrmain: etree) -> None:
187187
"""Helper-function for connect().
188188
189-
Detect which type of Smile is connected.
189+
Detect which type of Plugwise Gateway is being connected.
190190
"""
191191
model: str = "Unknown"
192192
if (gateway := result.find("./gateway")) is not None:
@@ -260,7 +260,10 @@ async def _smile_detect(self, result: etree, dsmrmain: etree) -> None:
260260
async def _smile_detect_legacy(
261261
self, result: etree, dsmrmain: etree, model: str
262262
) -> str:
263-
"""Helper-function for _smile_detect()."""
263+
"""Helper-function for _smile_detect().
264+
265+
Detect which type of legacy Plugwise Gateway is being connected.
266+
"""
264267
return_model = model
265268
# Stretch: find the MAC of the zigbee master_controller (= Stick)
266269
if (network := result.find("./module/protocols/master_controller")) is not None:

0 commit comments

Comments
 (0)