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)