Skip to content

Commit

Permalink
small fix for homekit ventialtion state
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Oct 6, 2021
1 parent 2c4a257 commit 0515cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vwsfriend/vwsfriend/homekit/climatization.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def setCurrentHeatingCoolingState(self, climatisationState):
if climatisationState.value == ClimatizationStatus.ClimatizationState.HEATING:
self.charCurrentHeatingCoolingState.set_value(1)
elif climatisationState.value == ClimatizationStatus.ClimatizationState.COOLING \
or climatisationState == ClimatizationStatus.ClimatizationState.VENTILATION:
or climatisationState.value == ClimatizationStatus.ClimatizationState.VENTILATION:
self.charCurrentHeatingCoolingState.set_value(2)
elif climatisationState.value == ClimatizationStatus.ClimatizationState.OFF:
self.charCurrentHeatingCoolingState.set_value(0)
Expand All @@ -90,7 +90,7 @@ def onClimatizationState(self, element, flags):
def onTargetTemperatureChange(self, element, flags):
if flags & AddressableLeaf.ObserverEvent.VALUE_CHANGED:
self.charTargetTemperature.set_value((element.value - 273.15))
LOG.info('targetTemperature_K Changed: %f', (element.value - 273.15))
LOG.info('targetTemperature Changed: %f', (element.value - 273.15))
else:
LOG.debug('Unsupported event %s', flags)

Expand Down

0 comments on commit 0515cb8

Please sign in to comment.