File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def _sensitivity_level_from_cache(self) -> MotionSensitivity | None:
207207 if (
208208 sensitivity_level := self ._get_cache (CACHE_SCAN_CONFIG_SENSITIVITY )
209209 ) is not None :
210- return MotionSensitivity [ sensitivity_level ]
210+ return MotionSensitivity ( int ( sensitivity_level ))
211211 return None
212212
213213 def _motion_config_dirty_from_cache (self ) -> bool :
@@ -483,7 +483,7 @@ async def _scan_configure_update(self) -> None:
483483 CACHE_SCAN_CONFIG_RESET_TIMER , str (self ._motion_config .reset_timer )
484484 )
485485 self ._set_cache (
486- CACHE_SCAN_CONFIG_SENSITIVITY , self ._motion_config .sensitivity_level
486+ CACHE_SCAN_CONFIG_SENSITIVITY , self ._motion_config .sensitivity_level . value
487487 )
488488 self ._set_cache (
489489 CACHE_SCAN_CONFIG_DAYLIGHT_MODE , str (self ._motion_config .daylight_mode )
You can’t perform that action at this time.
0 commit comments