File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments