diff --git a/lib/App/index.js b/lib/App/index.js index 66fe5228..46b34b64 100644 --- a/lib/App/index.js +++ b/lib/App/index.js @@ -310,7 +310,7 @@ class App { // validate battery if (BATTERY_CAPABILITIES.includes(capabilityId)) { - if (!driver.energy || !Array.isArray(driver.energy.batteries)) { + if ((!driver.energy || (!Array.isArray(driver.energy.batteries) && !driver.energy.homeBattery))) { if (levelPublish) { throw new Error(`drivers.${driver.id} is missing an array 'energy.batteries' because the capability ${capabilityId} is being used.`); }