cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.901: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-11-05 13:14:49 +02:00
1 parent d48b9aff87
commit e2c7085d2c
76 files changed
+5380 -330

No files matched your search

+11
View File
@@ -117,6 +117,17 @@ def test_start_with_the_mosquitto_add_on(box):
assert "assets: []" in (data / "mapping.yaml").read_text()
assert env["CANTABILE_PROPOSE"] == "1" # the agent proposes one, consent off
assert not (data / "mapping-import.yaml").exists()
assert "CANTABILE_HA_REMOTE" not in env # remote HA for support: off unless the owner turns it on
def test_support_ha_only_when_the_owner_turns_it_on(box):
run, data, etc = box
Supervisor.mqtt = None
opts = json.loads((data / "options.json").read_text())
(data / "options.json").write_text(json.dumps(dict(opts, support_ha=True)))
assert run()["env"]["CANTABILE_HA_REMOTE"] == "1"
(data / "options.json").write_text(json.dumps(dict(opts, support_ha="yes")))
assert "CANTABILE_HA_REMOTE" not in run()["env"]
def test_start_without_a_broker_and_keeps_the_installers_files(box):