Skip to content

Commit

Permalink
fix: lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
woehrl01 authored May 3, 2023
1 parent 7ced3ba commit d27c56c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions PyViCare/PyViCareHeatingDevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def getHotWaterStorageTemperatureTop(self):
@handleNotSupported
def getHotWaterStorageTemperatureBottom(self):
return \
self.service.getProperty("heating.dhw.sensors.temperature.hotWaterStorage.bottom")["properties"]["value"][
"value"]
self.service.getProperty("heating.dhw.sensors.temperature.hotWaterStorage.bottom")["properties"]["value"][
"value"]

@handleNotSupported
def getDomesticHotWaterConfiguredTemperature2(self):
Expand Down Expand Up @@ -474,8 +474,8 @@ def deactivateComfort(self):
@handleNotSupported
def getSupplyTemperature(self):
return \
self.service.getProperty(f"heating.circuits.{self.circuit}.sensors.temperature.supply")["properties"][
"value"]["value"]
self.service.getProperty(f"heating.circuits.{self.circuit}.sensors.temperature.supply")["properties"][
"value"]["value"]

@handleNotSupported
def getRoomTemperature(self):
Expand All @@ -485,14 +485,14 @@ def getRoomTemperature(self):
@handleNotSupported
def getModes(self):
return \
self.service.getProperty(f"heating.circuits.{self.circuit}.operating.modes.active")["commands"]["setMode"][
"params"]["mode"]["constraints"]["enum"]
self.service.getProperty(f"heating.circuits.{self.circuit}.operating.modes.active")["commands"]["setMode"][
"params"]["mode"]["constraints"]["enum"]

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

@handleNotSupported
def getHeatingCurveShift(self):
Expand Down Expand Up @@ -529,8 +529,8 @@ def getPrograms(self):
@handleNotSupported
def getDesiredTemperatureForProgram(self, program):
return \
self.service.getProperty(f"heating.circuits.{self.circuit}.operating.programs.{program}")["properties"][
"temperature"]["value"]
self.service.getProperty(f"heating.circuits.{self.circuit}.operating.programs.{program}")["properties"][
"temperature"]["value"]

@handleNotSupported
def getCurrentDesiredTemperature(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_TestForMissingProperties.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
import unittest
from os import listdir
from os.path import dirname, isfile, isdir, join
from os.path import dirname, isdir, isfile, join

from tests.helper import readJson

Expand Down

0 comments on commit d27c56c

Please sign in to comment.