Skip to content

Commit

Permalink
Update PyViCareHeatingDevice.py (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
CFenner authored Nov 25, 2023
1 parent da1ef0f commit 7b9a321
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions PyViCare/PyViCareHeatingDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,18 @@ def setComfortTemperature(self, temperature):
def setNormalTemperature(self, temperature):
return self.setProgramTemperature("normal", temperature)

@handleNotSupported
def getActive(self):
return self.service.getProperty(f"heating.circuits.{self.circuit}")["properties"]["active"]["value"]

@handleNotSupported
def getName(self):
return self.service.getProperty(f"heating.circuits.{self.circuit}")["properties"]["name"]["value"]

@handleNotSupported
def getType(self):
return self.service.getProperty(f"heating.circuits.{self.circuit}")["properties"]["type"]["value"]

@handleNotSupported
def getActiveProgramMinTemperature(self):
active_program = self.getActiveProgram()
Expand Down

0 comments on commit 7b9a321

Please sign in to comment.