Skip to content

Commit 5e52887

Browse files
committed
reference to self-functions which return default values of config-object contains None
1 parent 918a946 commit 5e52887

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

plugwise_usb/nodes/scan.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ async def scan_configure(self) -> bool:
467467
request = ScanConfigureRequest(
468468
self._send,
469469
self._mac_in_bytes,
470-
self._motion_config.reset_timer,
471-
self._motion_config.sensitivity_level.value,
472-
self._motion_config.daylight_mode,
470+
self.reset_timer,
471+
self.sensitivity_level.value,
472+
self.daylight_mode,
473473
)
474474
if (response := await request.send()) is None:
475475
_LOGGER.warning(
@@ -495,16 +495,16 @@ async def scan_configure(self) -> bool:
495495
async def _scan_configure_update(self) -> None:
496496
"""Push scan configuration update to cache."""
497497
self._set_cache(
498-
CACHE_SCAN_CONFIG_RESET_TIMER, str(self._motion_config.reset_timer)
498+
CACHE_SCAN_CONFIG_RESET_TIMER, str(self.reset_timer)
499499
)
500500
self._set_cache(
501501
CACHE_SCAN_CONFIG_SENSITIVITY,
502502
self._motion_config.sensitivity_level.name,
503503
)
504504
self._set_cache(
505-
CACHE_SCAN_CONFIG_DAYLIGHT_MODE, str(self._motion_config.daylight_mode)
505+
CACHE_SCAN_CONFIG_DAYLIGHT_MODE, str(self.daylight_mode)
506506
)
507-
self._set_cache(CACHE_SCAN_CONFIG_DIRTY, str(self._motion_config.dirty))
507+
self._set_cache(CACHE_SCAN_CONFIG_DIRTY, str(self.dirty))
508508
await gather(
509509
self.publish_feature_update_to_subscribers(
510510
NodeFeature.MOTION_CONFIG,

0 commit comments

Comments
 (0)