Make cool_on and heat_on method calls. They aren't properties in python-wink (#25549)

This commit is contained in:
William Scanlon 2019-07-28 20:47:32 -04:00 committed by Andrew Sayre
parent e225243bc5
commit bc38d394d5

View file

@ -241,9 +241,9 @@ class WinkThermostat(WinkDevice, ClimateDevice):
"""
if not self.wink.is_on():
return CURRENT_HVAC_OFF
if self.wink.cool_on:
if self.wink.cool_on():
return CURRENT_HVAC_COOL
if self.wink.heat_on:
if self.wink.heat_on():
return CURRENT_HVAC_HEAT
return CURRENT_HVAC_IDLE