mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-07-15 01:35:23 +00:00
add new flush sensor device to app
This commit is contained in:
@ -595,10 +595,7 @@ class DevicesAPI {
|
||||
final result = <DeviceModel>[];
|
||||
for (final device in data) {
|
||||
final mappedDevice = DeviceModel.fromJson(device);
|
||||
if (mappedDevice.productType?.name !=
|
||||
DeviceType.FlushMountedSensor.name) {
|
||||
result.add(mappedDevice);
|
||||
}
|
||||
result.add(mappedDevice);
|
||||
}
|
||||
return result;
|
||||
},
|
||||
|
Reference in New Issue
Block a user