Skip to content

Commit a825b24

Browse files
committed
Ruff format fixes
1 parent 39735a1 commit a825b24

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

plugwise/helper.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,9 @@ def _p1_smartmeter_info_finder(self) -> None:
373373
"""Collect P1 DSMR SmartMeter info."""
374374
appl = Munch()
375375
loc_id = next(iter(self._loc_data.keys()))
376-
if (location := self._domain_objects.find(f'./location[@id="{loc_id}"]')) is None:
376+
if (
377+
location := self._domain_objects.find(f'./location[@id="{loc_id}"]')
378+
) is None:
377379
return None
378380

379381
locator = MODULE_LOCATOR

tests/test_adam.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ async def test_connect_adam_plus_anna_new(self):
138138
try:
139139
await self.device_test(smile, initialize=False)
140140
except pw_exceptions.PlugwiseError as err:
141-
_LOGGER.debug(f"Receiving no data after a reboot is properly handled: {err}")
141+
_LOGGER.debug(
142+
f"Receiving no data after a reboot is properly handled: {err}"
143+
)
142144

143145
# Simulate receiving xml-data with <error>
144146
self.smile_setup = "error/adam_plus_anna_new"

tests/test_p1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ async def test_connect_p1v4_442_single(self):
4646
try:
4747
await self.device_test(smile, initialize=False)
4848
except pw_exceptions.PlugwiseError as err:
49-
_LOGGER.debug(f"Receiving no data after a reboot is properly handled: {err}")
49+
_LOGGER.debug(
50+
f"Receiving no data after a reboot is properly handled: {err}"
51+
)
5052

5153
# Simulate receiving xml-data with <error>
5254
self.smile_setup = "error/p1v4_442_single"

0 commit comments

Comments
 (0)