Skip to content

Commit 86ac330

Browse files
committed
Bump corner case formatting
1 parent 618675c commit 86ac330

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/smile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ async def connect(self):
155155
model = status.find(".//system/product").text
156156
self.smile_hostname = status.find(".//network/hostname").text
157157
except InvalidXMLError: # pragma: no cover
158-
"""Corner case check."""
158+
# Corner case check
159159
raise ConnectionFailedError
160160

161161
# Stretch:
@@ -167,7 +167,7 @@ async def connect(self):
167167
self.smile_hostname = system.find(".//gateway/hostname").text
168168
self.gateway_id = network.attrib["id"]
169169
except InvalidXMLError: # pragma: no cover
170-
"""Corner case check."""
170+
# Corner case check
171171
raise ConnectionFailedError
172172
else:
173173
_LOGGER.error("Connected but no gateway device information found")
@@ -178,7 +178,7 @@ async def connect(self):
178178
version = result.find(".//gateway/firmware_version").text
179179

180180
if model is None or version is None: # pragma: no cover
181-
"""Corner case check."""
181+
# Corner case check
182182
_LOGGER.error("Unable to find model or version information")
183183
raise UnsupportedDeviceError
184184

0 commit comments

Comments
 (0)