cleaned some warring messages

This commit is contained in:
Mohammad Salameh
2024-03-03 13:10:03 +03:00
parent 136987c56a
commit 643b206d4c
13 changed files with 12 additions and 19 deletions
+3 -3
View File
@@ -46,9 +46,9 @@ class DevicesCubit extends Cubit<DevicesState> {
void updateDevicesStatus(DevicesCategoryModel category) {
bool? tempStatus = category.devices[0].status;
for (var AC in category.devices) {
//check if there any AC have a different status than the initial ==> turn off the universal switch
if (AC.status != tempStatus) {
for (var ac in category.devices) {
//check if there any ac have a different status than the initial ==> turn off the universal switch
if (ac.status != tempStatus) {
category.devicesStatus = null;
emit(DeviceSwitchChanged());
return;