mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-23 21:37:56 +00:00
Refactor _onFlushMountedPresenceSensorFetchBatchStatusEvent to use final for response variable
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ class FlushMountedPresenceSensorBloc
|
||||
) async {
|
||||
emit(FlushMountedPresenceSensorLoadingInitialState());
|
||||
try {
|
||||
var response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
|
||||
final response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
|
||||
deviceStatus = FlushMountedPresenceSensorModel.fromJson(response.status);
|
||||
emit(FlushMountedPresenceSensorUpdateState(model: deviceStatus));
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user