cantabile_edge, cantabile_modbus, cantabile_eebus 0.1.629: full source

This commit is contained in:
Setti Solutions S.R.L committed 2026-11-03 23:26:41 +02:00
1 parent d5fbcacaa4
commit 85edd56ec8
46 files changed
+3518 -267

No files matched your search

+3 -3
View File
@@ -421,9 +421,9 @@ def test_addon_devices_page_shade(tmp_path):
assert 'name="ha_device" value="rbs"' in out and 'name="ha_device" value="garage"' not in out
s.post(do="use", ha_device="rbs", profile="ha-cover", name="Left curtain")
dev_id = next(i for i, d in s.devices().items() if d["profile"] == "ha-cover")
out = s.req()
out = s.req(query=f"p=devices&d={dev_id}")
assert "Room and window" in out and '<option value="Bedroom" selected>Bedroom</option>' in out
assert "It may control: blinds and curtains." in out and "Allow Cantabile to move it" in out
assert "Controls: blinds and curtains" in out and "Allow Cantabile to move it" in out
s.post(do="use", ha_device="dev-ac", profile="ha-thermostat") # the living room's A/C
ac = next(i for i, d in s.devices().items() if d["profile"] == "ha-thermostat")
s.post(do="shade", id=dev_id, area="Living room", facing="SE")
@@ -436,6 +436,6 @@ def test_addon_devices_page_shade(tmp_path):
def run():
i18n.use("de")
return s.req()
return s.req(query=f"p=devices&d={dev_id}")
de = contextvars.copy_context().run(run)
assert "Raum und Fenster" in de and "Südosten" in de and "Bewegen durch Cantabile erlauben" in de