mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-18 18:20:44 +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
|
||||
def hvac_mode(self):
|
||||
"""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
|
||||
return self._operation_list[0]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user