-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
Prepare Netatmo for climate 1.0 #24973
Prepare Netatmo for climate 1.0 #24973
Conversation
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10) | ||
PRESET_FROST_GUARD = 'frost_guard' | ||
PRESET_MAX = 'max' | ||
PRESET_OFF = HVAC_MODE_OFF |
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.
None
will be passed as preset for the off preset.
"""Return the operation modes list.""" | ||
return self._operation_list | ||
"""Return the list of available hvac operation modes.""" | ||
return SUPPORT_HVAC |
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.
Why do you maintain self._operation_list
if you are not using it ?
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.
True, thanks for the hint.
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.
ok to merge if final comment addressed
I don't think that just setting your preset value to |
Description:
Prepare the Netatmo climate component for the big Climate-1.0 change in #23899.
Related issue (if applicable): fixes #
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
python3 -m script.hassfest
.requirements_all.txt
by runningpython3 -m script.gen_requirements_all
..coveragerc
.If the code does not interact with devices: