cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.1789: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-11-12 06:28:42 +02:00
1 parent 94f46db8f8
commit b24675fe9c
25 files changed
+766 -40

No files matched your search

+8
View File
@@ -92,6 +92,14 @@ class Building:
self.bound = b if isinstance(b, dict) and b.get("building") else None
except (OSError, ValueError, AttributeError):
pass
c = self.active.get("battery_plan")
if c and not self.bound:
# a plan taken by an agent before the binding existed (2026-11-09, the farm's upgrade to 0.1.0-dev.db2193861454:
# Berlin's and Durlach's plans of the night carried no binding, so A9.4b did not hold and the owner's 10 % floor
# was refilled from the grid against the building's 0 W): the plan in force binds as if taken now
self.bound = {"building": c["building"], "level": c.get("level", "binding"), "since": int(self.clock()),
"until": c["until"], "id": c["id"]}
self._save()
self.drop_ended()
def memberships(self) -> set[str] | None: