set default values in the devices models instead of late, and fixed issues in the AC bloc

This commit is contained in:
Abdullah Alassaf
2025-02-20 04:13:37 +03:00
parent 3f7f7ce49f
commit 450b773921
14 changed files with 106 additions and 148 deletions

View File

@ -23,9 +23,9 @@ class CeilingSensorModel {
required this.bodyMovement});
factory CeilingSensorModel.fromJson(List<StatusModel> jsonList) {
late String _presenceState;
late int _sensitivity;
late String _checkingResult;
String _presenceState = 'none';
int _sensitivity = 1;
String _checkingResult = '';
int _presenceRange = 1;
int _sportsPara = 1;
int _moving_max_dis = 0;