Skip to content
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

Fix warning message for implicitly supporting turn_on/off methods in HVACModes #162

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

kitprice
Copy link
Contributor

Closes #161: Warning message:

Entity None (<class 'custom_components.vivint.climate.VivintClimate'>) implements HVACMode(s): cool, heat, heat_cool, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/natekspencer/hacs-vivint/issues

…HVACModes

Entity None (<class 'custom_components.vivint.climate.VivintClimate'>) implements HVACMode(s): cool, heat, heat_cool, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/natekspencer/hacs-vivint/issues
Copy link
Owner

@natekspencer natekspencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor changes. Thanks for this!

)
_enable_turn_on_off_backwards_compatibility = False
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this so it is under all _attr_* settings

@@ -209,12 +212,21 @@ async def async_set_fan_mode(self, fan_mode: str) -> None:
}
)


Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get rid of this extra line break

Move  _enable_turn_on_off_backwards_compatibility after all _attr_* settings.
Remove extra link break.
@natekspencer natekspencer merged commit fcde0d0 into natekspencer:main Dec 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning issued for implicitly supporting turn_on/off methods
2 participants