1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00

Mill, correct hvac_mode. Fixes #31236 (#31242)

This commit is contained in:
Daniel Høyer Iversen 2020-01-28 11:58:37 +01:00 committed by GitHub
parent 259a7e8490
commit a9c43c6c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ class MillHeater(ClimateDevice):
Need to be one of HVAC_MODE_*.
"""
if self._heater.is_gen1 or self._heater.power_status == 1:
if self._heater.is_gen1 or self._heater.is_heating == 1:
return HVAC_MODE_HEAT
return HVAC_MODE_OFF