getOmiDevices method
Devices registered on the OMI backend for the current SIP user. Empty when not logged in or on network failure; never throws. Each call is an HTTP request — do not poll.
Implementation
Future<List<OmiDeviceInfo>> getOmiDevices() async {
final result = await _controller
.action(OmiAction(actionName: OmiActionName.GET_OMI_DEVICES, data: {}));
if (result is! List) return [];
return result.whereType<Map>().map((e) => OmiDeviceInfo.fromMap(e)).toList();
}