Replaced hardcoded device id from RemotePowerClampInfoService.getInfo, and instead used the one from the method parameter.

This commit is contained in:
Faris Armoush
2025-05-07 15:47:41 +03:00
parent 7f03222c12
commit bfb9158652

View File

@ -11,7 +11,7 @@ final class RemotePowerClampInfoService implements PowerClampInfoService {
Future<PowerClampModel> getInfo(String deviceId) async { Future<PowerClampModel> getInfo(String deviceId) async {
try { try {
final response = await _httpService.get( final response = await _httpService.get(
path: '/devices/cb71d6ad-6e29-4eaa-ae3e-1a0d1c5f60fa/functions/status', path: '/devices/$deviceId/functions/status',
showServerMessage: true, showServerMessage: true,
expectedResponseModel: (data) { expectedResponseModel: (data) {
final json = data as Map<String, Object?>? ?? {}; final json = data as Map<String, Object?>? ?? {};