We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e75e2 commit 31ae902Copy full SHA for 31ae902
plugwise_usb/nodes/scan.py
@@ -53,7 +53,7 @@
53
DEFAULT_RESET_TIMER: Final = 10
54
55
# Default sensitivity of the motion sensors
56
-DEFAULT_SENSITIVITY = MOTION_SENSITIVITY(MEDIUM)
+DEFAULT_SENSITIVITY = MOTION_SENSITIVITY[MEDIUM]
57
58
# Light override
59
DEFAULT_DAYLIGHT_MODE: Final = False
@@ -207,7 +207,7 @@ def _sensitivity_level_from_cache(self) -> str | None:
207
if (
208
sensitivity_level := self._get_cache(CACHE_SCAN_CONFIG_SENSITIVITY)
209
) is not None:
210
- return MOTION_SENSITIVITY(sensitivity_level)
+ return MOTION_SENSITIVITY[sensitivity_level]
211
return None
212
213
def _motion_config_dirty_from_cache(self) -> bool:
0 commit comments