Skip to content

Commit

Permalink
another battery temperature homekit bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Nov 28, 2023
1 parent 10a098b commit 57060a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vwsfriend/vwsfriend/homekit/battery_temperature.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def onChargingState(self, element, flags):
def onBatteryTemperatureChange(self, element, flags):
if flags & AddressableLeaf.ObserverEvent.VALUE_CHANGED and self.batteryTemperatureStatus is not None \
and self.batteryTemperatureStatus.temperatureHvBatteryMin_K.enabled and self.batteryTemperatureStatus.temperatureHvBatteryMax_K.enabled:
self.setChargingState(self.batteryTemperatureStatus.temperatureHvBatteryMin_K.value, self.batteryTemperatureStatus.temperatureHvBatteryMax_K.value)
self.setBatteryTemperature(self.batteryTemperatureStatus.temperatureHvBatteryMin_K.value, self.batteryTemperatureStatus.temperatureHvBatteryMax_K.value)
LOG.debug('Battery temperature Changed: %f to %f °C', self.batteryTemperatureStatus.temperatureHvBatteryMin_K.value,
self.batteryTemperatureStatus.temperatureHvBatteryMax_K.value)
else:
Expand Down

0 comments on commit 57060a5

Please sign in to comment.