Skip to content

Commit 2d51348

Browse files
author
autoruff
committed
fixup: mdi_scan Python code reformatted using Ruff
1 parent 5e52887 commit 2d51348

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

plugwise_usb/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,8 +660,7 @@ async def set_motion_reset_timer(self, minutes: int) -> bool:
660660
"""
661661

662662
async def set_motion_sensitivity_level(
663-
self,
664-
level: MotionSensitivity | int | str
663+
self, level: MotionSensitivity | int | str
665664
) -> bool:
666665
"""Configure motion sensitivity level.
667666

plugwise_usb/nodes/scan.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -494,16 +494,12 @@ async def scan_configure(self) -> bool:
494494

495495
async def _scan_configure_update(self) -> None:
496496
"""Push scan configuration update to cache."""
497-
self._set_cache(
498-
CACHE_SCAN_CONFIG_RESET_TIMER, str(self.reset_timer)
499-
)
497+
self._set_cache(CACHE_SCAN_CONFIG_RESET_TIMER, str(self.reset_timer))
500498
self._set_cache(
501499
CACHE_SCAN_CONFIG_SENSITIVITY,
502500
self._motion_config.sensitivity_level.name,
503501
)
504-
self._set_cache(
505-
CACHE_SCAN_CONFIG_DAYLIGHT_MODE, str(self.daylight_mode)
506-
)
502+
self._set_cache(CACHE_SCAN_CONFIG_DAYLIGHT_MODE, str(self.daylight_mode))
507503
self._set_cache(CACHE_SCAN_CONFIG_DIRTY, str(self.dirty))
508504
await gather(
509505
self.publish_feature_update_to_subscribers(

0 commit comments

Comments
 (0)