Skip to content

Commit e3ae231

Browse files
author
autoruff
committed
fixup: testing345 Python code reformatted using Ruff
1 parent 4aada00 commit e3ae231

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

plugwise_usb/nodes/scan.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ async def _configure_scan_task(self) -> bool:
452452
change_required = True
453453
if not change_required:
454454
return True
455-
455+
456456
if not await self.scan_configure(
457457
motion_reset_timer=self.reset_timer,
458458
sensitivity_level=self.sensitivity_level,
@@ -511,7 +511,8 @@ async def scan_configure(
511511
)
512512
if (response := await request.send()) is None:
513513
_LOGGER.warning(
514-
"No response from %s to configure scan device settings request", self.name
514+
"No response from %s to configure scan device settings request",
515+
self.name,
515516
)
516517
# self._new_reset_timer = None
517518
# self._new_sensitivity_level = None

tests/test_usb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
19401940
assert not test_sed.cache_enabled
19411941

19421942
# Validate SED properties raise exception when node is not yet loaded
1943-
#with pytest.raises(pw_exceptions.NodeError):
1943+
# with pytest.raises(pw_exceptions.NodeError):
19441944
assert test_sed.battery_config is not None
19451945

19461946
# with pytest.raises(pw_exceptions.NodeError):
@@ -2207,7 +2207,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
22072207
assert test_scan.scan_config_task_scheduled
22082208
await test_scan._awake_response(awake_response2) # pylint: disable=protected-access
22092209
await asyncio.sleep(0.001) # Ensure time for task to be executed
2210-
assert not test_scan._scan_config_task_scheduled # _ added
2210+
assert not test_scan._scan_config_task_scheduled # _ added
22112211
assert test_scan.reset_timer == 25
22122212
assert test_scan.motion_config.reset_timer == 25
22132213

0 commit comments

Comments
 (0)