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

This commit is contained in:
William Scanlon authored and Andrew Sayre committed 2019-07-28 19:47:32 -05:00
1 parent e225243bc5
commit bc38d394d5
1 file changed
+2 -2
+2 -2
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