SMA: disable speedwire battery until verified

master
Simon Stürz 2023-05-15 14:45:10 +02:00
parent 3c42c4837d
commit 23d620c52d
1 changed files with 2 additions and 1 deletions

View File

@ -455,8 +455,9 @@ void IntegrationPluginSma::setupThing(ThingSetupInfo *info)
// First check if we already set up a battery for this inverter // First check if we already set up a battery for this inverter
Things childThings = myThings().filterByParentId(thing->id()).filterByThingClassId(speedwireBatteryThingClassId); Things childThings = myThings().filterByParentId(thing->id()).filterByThingClassId(speedwireBatteryThingClassId);
if (childThings.isEmpty()) { if (childThings.isEmpty()) {
// FIXME: re-enable autosetup once verified to be working as expected
// Autocreate battery // Autocreate battery
emit autoThingsAppeared(ThingDescriptors() << ThingDescriptor(speedwireBatteryThingClassId, "SMA Battery", QString(), thing->id())); // emit autoThingsAppeared(ThingDescriptors() << ThingDescriptor(speedwireBatteryThingClassId, "SMA Battery", QString(), thing->id()));
} else { } else {
// We can only have one battery as a child // We can only have one battery as a child
Thing *batteryThing = childThings.first(); Thing *batteryThing = childThings.first();