Use backend rescan summary in group editor

This commit is contained in:
Artem Kokos
2026-05-16 10:59:31 +07:00
parent 70fedb6134
commit 83d946558b
3 changed files with 76 additions and 38 deletions

View File

@@ -36,6 +36,7 @@ class FakeIgnisApi extends IgnisApi {
Object? eventLogData;
Object? apiKeysData;
Object? authData;
Object? rescanNetworkData;
Object? devicesError;
Object? scenesError;
@@ -329,7 +330,17 @@ class FakeIgnisApi extends IgnisApi {
if (error != null) throw error;
return Response(
requestOptions: RequestOptions(path: '/devices/rescan'),
data: <String, dynamic>{'ok': true},
data:
rescanNetworkData ??
<String, dynamic>{
'status': 'ok',
'found': 0,
'added': 0,
'updated': 0,
'removed_offline': 0,
'pending_removal': 0,
'online': 0,
},
);
}
}