From f6b83bcc4925b2c8d8dd2f50ed9db2017aef2f54 Mon Sep 17 00:00:00 2001 From: POCHET Romuald Date: Fri, 6 Oct 2023 12:35:02 +0200 Subject: [PATCH] BDPV --- server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js b/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js index 4cd23125fb..57dea340f9 100644 --- a/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js +++ b/server/test/services/sunspec/lib/bdpv/sunspec.bdpv.test.js @@ -14,11 +14,11 @@ describe('SunSpec BDPV', () => { beforeEach(() => { const feature1 = { - property: PROPERTY.ACWH, + type: 'energy', last_value: 1234, }; const feature2 = { - property: PROPERTY.ACWH, + type: 'energy', last_value: 5678, }; gladys = { @@ -46,9 +46,11 @@ describe('SunSpec BDPV', () => { getDevices: () => { return [ { + external_id: 'sunspec:1:mppt:ac', features: [feature1], }, { + external_id: 'sunspec:2:mppt:ac', features: [feature2], }, ];