[hdpowerview] Add Hub configuration option hardRefreshBatteryLevel (#11260)

* Add Hub configuration option hardRefreshBatteryLevel for refreshing battery status more frequently.
* Explicitly update battery channels to Undefined when data is missing or invalid.

Fixes #11259

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
jlaur
2021-09-18 13:55:04 +02:00
committed by GitHub
parent 84ba4fc333
commit 805d56dc08
7 changed files with 136 additions and 30 deletions

View File

@@ -218,7 +218,7 @@ public class HDPowerViewJUnitTests {
Shade shade = null;
try {
assertNotEquals(0, shadeId);
shade = webTargets.refreshShade(shadeId);
shade = webTargets.refreshShadePosition(shadeId);
assertNotNull(shade);
} catch (HubProcessingException | HubMaintenanceException e) {
fail(e.getMessage());