From 763e39ef125024f006b77c0b09f45178b47a4592 Mon Sep 17 00:00:00 2001 From: mohammad Date: Thu, 9 Jan 2025 15:37:26 +0300 Subject: [PATCH] changeAcSwitch --- lib/features/devices/bloc/acs_bloc/acs_bloc.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/features/devices/bloc/acs_bloc/acs_bloc.dart b/lib/features/devices/bloc/acs_bloc/acs_bloc.dart index 33dd1dd..4fd7fe0 100644 --- a/lib/features/devices/bloc/acs_bloc/acs_bloc.dart +++ b/lib/features/devices/bloc/acs_bloc/acs_bloc.dart @@ -131,7 +131,7 @@ class ACsBloc extends Bloc { if (allAcsPage) { emit(AcsLoadingState()); for (AcStatusModel ac in deviceStatusList) { - if (ac.uuid == event.deviceId) { + if (ac.uuid == event.productId) { ac.acSwitch = acSwitchValue; } }