Fix Mill Gen1 Climate Control (#66899)

Fixes Mill Gen1 Climate Control, so it correctly returns the current status of the heating element.
This commit is contained in:
jingsno 2022-02-19 19:21:10 +01:00 committed by GitHub
parent 6464ab8356
commit e8fc4cc627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,7 +184,7 @@ class MillHeater(CoordinatorEntity, ClimateEntity):
self._attr_target_temperature = heater.set_temp
self._attr_current_temperature = heater.current_temp
self._attr_fan_mode = FAN_ON if heater.fan_status == 1 else HVAC_MODE_OFF
if heater.is_gen1 or heater.is_heating == 1:
if heater.is_heating == 1:
self._attr_hvac_action = CURRENT_HVAC_HEAT
else:
self._attr_hvac_action = CURRENT_HVAC_IDLE