mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
Replaced hardcoded device id from RemotePowerClampInfoService.getInfo
, and instead used the one from the method parameter.
This commit is contained in:
@ -11,7 +11,7 @@ final class RemotePowerClampInfoService implements PowerClampInfoService {
|
||||
Future<PowerClampModel> getInfo(String deviceId) async {
|
||||
try {
|
||||
final response = await _httpService.get(
|
||||
path: '/devices/cb71d6ad-6e29-4eaa-ae3e-1a0d1c5f60fa/functions/status',
|
||||
path: '/devices/$deviceId/functions/status',
|
||||
showServerMessage: true,
|
||||
expectedResponseModel: (data) {
|
||||
final json = data as Map<String, Object?>? ?? {};
|
||||
|
Reference in New Issue
Block a user