From e0b836690e04a96260cd4eaff0eaf8f44d13e785 Mon Sep 17 00:00:00 2001 From: bekra00 Date: Mon, 20 Apr 2026 09:38:41 +0200 Subject: [PATCH] heating.circuits.N.operating.modes.cooling added Added heating.circuits.N.operating.modes.cooling to the PyViCareHeating Device and setup testing --- PyViCare/PyViCareHeatingDevice.py | 4 ++++ tests/test_Vitocal111S.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/PyViCare/PyViCareHeatingDevice.py b/PyViCare/PyViCareHeatingDevice.py index de31df05..3254f82e 100644 --- a/PyViCare/PyViCareHeatingDevice.py +++ b/PyViCare/PyViCareHeatingDevice.py @@ -583,6 +583,10 @@ def getActiveMode(self): self.getProperty(f"heating.circuits.{self.circuit}.operating.modes.active")["properties"]["value"][ "value"] + @handleNotSupported + def getCoolingActive(self): + return self.getProperty(f"heating.circuits.{self.circuit}.operating.modes.cooling")["properties"]["active"]["value"] + @handleNotSupported def getHeatingCurveShift(self): return self.getProperty(f"heating.circuits.{self.circuit}.heating.curve")["properties"]["shift"][ diff --git a/tests/test_Vitocal111S.py b/tests/test_Vitocal111S.py index a4fbca4e..abae20d7 100644 --- a/tests/test_Vitocal111S.py +++ b/tests/test_Vitocal111S.py @@ -30,3 +30,6 @@ def test_ventilationQuickmodes(self): "eco", "holiday", ]) + + def test_cooling_active(self): + self.assertEqual(self.device.circuits[0].getCoolingActive(), False)