Skip to content

Commit cebeb64

Browse files
author
autoruff
committed
fixup: p1-detection-fix Python code fixed using ruff
1 parent 7ff7454 commit cebeb64

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugwise/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ async def _smile_detect(
193193
self._store_smile_data(model)
194194
self._process_for_thermostat(result)
195195

196-
async def _collect_smile_data(self, dsmrmain: etree.Element, result: etree.Element) -> str:
196+
async def _collect_smile_data(
197+
self, dsmrmain: etree.Element, result: etree.Element
198+
) -> str:
197199
"""Collect smile/gateway data."""
198200
model: str = "Unknown"
199201
if (gateway := result.find("./gateway")) is not None:
@@ -251,7 +253,7 @@ def _process_for_thermostat(self, result: etree.Element) -> None:
251253

252254
def _store_smile_data(self, model: str) -> None:
253255
"""Store the collected the smile/gateway data.
254-
256+
255257
Perform some checks, and set a shorter timeout for non-legacy Gateways.
256258
"""
257259
version_major = str(self.smile.version.major)

0 commit comments

Comments
 (0)