mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2026-10-23 10:47:55 +00:00
remove unused code
This commit is contained in:
@@ -86,7 +86,7 @@ class DevicesCubit extends Cubit<DevicesState> {
|
|||||||
}
|
}
|
||||||
Map<dynamic, dynamic> usersMap =
|
Map<dynamic, dynamic> usersMap =
|
||||||
event.snapshot.value as Map<dynamic, dynamic>;
|
event.snapshot.value as Map<dynamic, dynamic>;
|
||||||
print('object-----${usersMap['status']}');
|
// print('object-----${usersMap['status']}');
|
||||||
List<StatusModel> statusList = [];
|
List<StatusModel> statusList = [];
|
||||||
usersMap['status'].forEach((element) {
|
usersMap['status'].forEach((element) {
|
||||||
statusList
|
statusList
|
||||||
@@ -660,7 +660,6 @@ class DevicesCubit extends Cubit<DevicesState> {
|
|||||||
code: 'switch_1', value: toggledValue, deviceId: deviceUuid);
|
code: 'switch_1', value: toggledValue, deviceId: deviceUuid);
|
||||||
final response =
|
final response =
|
||||||
await DevicesAPI.controlDevice(controlRequest, deviceUuid);
|
await DevicesAPI.controlDevice(controlRequest, deviceUuid);
|
||||||
print(response);
|
|
||||||
if (response['result'] != true) {
|
if (response['result'] != true) {
|
||||||
throw Exception('Failed to toggle switch_1');
|
throw Exception('Failed to toggle switch_1');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user