Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner committed Jan 22, 2025
1 parent 181b7a7 commit cd8217e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PyViCare/PyViCareHeatPump.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ def setDomesticHotWaterHysteresisSwitchOff(self, temperature: float) -> Any:
return self.service.setProperty("heating.dhw.temperature.hysteresis", "setHysteresisSwitchOffValue", {'hysteresis': temperature})

@handleNotSupported
def getHeatingSupplyPressureUnit(self) -> str:
def getSupplyPressureUnit(self) -> str:
# Returns heating supply pressure unit (e.g. bar)
return str(self.service.getProperty("heating.sensors.pressure.supply")["properties"]["value"]["unit"])

@handleNotSupported
def getHeatingSupplyPressure(self) -> float:
def getSupplyPressure(self) -> float:
# Returns heating supply pressure
return float(self.service.getProperty("heating.sensors.pressure.supply")["properties"]["value"]["value"])

Expand Down
4 changes: 2 additions & 2 deletions tests/test_Vitocal250A.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,5 +191,5 @@ def test_setDomesticHotWaterHysteresisSwitchOff(self):
'hysteresis': 5})

def test_getHeatingSupplyPressure(self):
self.assertEqual(self.device.getHeatingSupplyPressure(), 2.1)
self.assertEqual(self.device.getHeatingSupplyPressureUnit(), "bar")
self.assertEqual(self.device.getSupplyPressure(), 2.1)
self.assertEqual(self.device.getSupplyPressureUnit(), "bar")

0 comments on commit cd8217e

Please sign in to comment.