mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-18 23:00:43 +00:00
Fix the attempt to get mode before mode is set
This commit is contained in:
parent
5d74119c38
commit
aeecf31aea
@ -168,7 +168,7 @@ class NestClimate(ClimateDevice):
|
|||||||
@property
|
@property
|
||||||
def hvac_mode(self):
|
def hvac_mode(self):
|
||||||
"""Return hvac target hvac state."""
|
"""Return hvac target hvac state."""
|
||||||
if self.device.mode == NEST_MODE_ECO:
|
if self.device.mode is None or self.device.mode == NEST_MODE_ECO:
|
||||||
# We assume the first operation in operation list is the main one
|
# We assume the first operation in operation list is the main one
|
||||||
return self._operation_list[0]
|
return self._operation_list[0]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user