Add mappings for moving_range and presence_range in slider helpers

This commit is contained in:
Faris Armoush
2025-04-15 10:34:05 +03:00
parent e2ec986bb9
commit 6bea4c2f4a
2 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,8 @@ class _CeilingSensorDialogState extends State<CeilingSensorDialog> {
'moving_static_time', 'moving_static_time',
'none_body_time', 'none_body_time',
'moving_max_dis', 'moving_max_dis',
'moving_range',
'presence_range',
}; };
List<DeviceFunctionData> _updateValuesForAddedFunctions( List<DeviceFunctionData> _updateValuesForAddedFunctions(

View File

@ -12,6 +12,8 @@ abstract final class CpsSliderHelpers {
'moving_static_time' => (0, 60000, 1000), 'moving_static_time' => (0, 60000, 1000),
'none_body_time' => (0, 300000, 5000), 'none_body_time' => (0, 300000, 5000),
'moving_max_dis' => (0, 500, 50), 'moving_max_dis' => (0, 500, 50),
'moving_range' => (0, 255, 5),
'presence_range' => (0, 255, 5),
_ => (defaultMin, defaultMax, defaultDivdidend), _ => (defaultMin, defaultMax, defaultDivdidend),
}; };
} }