Use backend rescan summary in group editor
This commit is contained in:
@@ -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,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user