-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Nest operation modes #3609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nest operation modes #3609
Conversation
@@ -62,13 +63,22 @@ def unit_of_measurement(self): | |||
return TEMP_CELSIUS | |||
|
|||
@property | |||
def state(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not overwrite state. That's for the Climate ABC to decide (it currently returns self.operation_mode
)
…on mode" This reverts commit 573ba02. Conflicts: homeassistant/components/climate/nest.py
Awesome! Coming to a hotfix near you soon 👍 🐬 |
@jawilson good catch on this. It makes sense the way you displayed it now. I tested your patch and looks good to me. It is nice that it shows Auto when running in range. Very clear 👍 Thanks for the good work! |
* Add ability to change Nest mode to all available options * Make Nest state reflect current operation not current operation mode * Update Nest sensor to use operation mode * Fix linting * Revert "Make Nest state reflect current operation not current operation mode" This reverts commit 573ba02. Conflicts: homeassistant/components/climate/nest.py
Description:
The Nest operation modes in #3606 don't match with what you can actually set. I made changes to the operation mode corresponds to what mode the thermostat is in (heat, cool, auto, off) and the climate state refers to the current operation it is taking (heat, cool, idle). I also update the Nest sensor to use
operation_mode
instead of the legacymode
value.I honestly think the card should be updated so instead of
current_operation
attribute it displays the climatestate
.Checklist:
If code communicates with devices, web services, or a:
tox
run successfully. Your PR cannot be merged unless tests pass