Skip to content

Commit 31ae902

Browse files
committed
Formatting
1 parent 69e75e2 commit 31ae902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise_usb/nodes/scan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
DEFAULT_RESET_TIMER: Final = 10
5454

5555
# Default sensitivity of the motion sensors
56-
DEFAULT_SENSITIVITY = MOTION_SENSITIVITY(MEDIUM)
56+
DEFAULT_SENSITIVITY = MOTION_SENSITIVITY[MEDIUM]
5757

5858
# Light override
5959
DEFAULT_DAYLIGHT_MODE: Final = False
@@ -207,7 +207,7 @@ def _sensitivity_level_from_cache(self) -> str | None:
207207
if (
208208
sensitivity_level := self._get_cache(CACHE_SCAN_CONFIG_SENSITIVITY)
209209
) is not None:
210-
return MOTION_SENSITIVITY(sensitivity_level)
210+
return MOTION_SENSITIVITY[sensitivity_level]
211211
return None
212212

213213
def _motion_config_dirty_from_cache(self) -> bool:

0 commit comments

Comments
 (0)