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

Bring Climate entity up to date #8

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

pretenda
Copy link

Update enums and turn_on/turn_off features

Updated references to the following enums, pointing them to their new respective HVACMode., ClimateEntityFeature., or UnitOfTemperature. counterpart:
HVAC_MODE_OFF,
HVAC_MODE_AUTO,
HVAC_MODE_COOL,
HVAC_MODE_DRY,
HVAC_MODE_HEAT,
HVAC_MODE_FAN_ONLY,
SUPPORT_FAN_MODE,
SUPPORT_TARGET_TEMPERATURE,
TEMP_CELSIUS

Support new ClimateEntityFeature.TURN_ON and *.TURN_OFF functionality

References:
https://developers.home-assistant.io/blog/2022/05/03/constants-deprecations/
https://developers.home-assistant.io/blog/2024/01/24/climate-climateentityfeatures-expanded/

The integration no longer throws warnings in HA logs. This is my first time with Python and pushing a PR to someone elses repo, so feel free to hack at it :)

…atures

Updated references to:

HVAC_MODE_OFF,
HVAC_MODE_AUTO,
HVAC_MODE_COOL,
HVAC_MODE_DRY,
HVAC_MODE_HEAT,
HVAC_MODE_FAN_ONLY,
SUPPORT_FAN_MODE,
SUPPORT_TARGET_TEMPERATURE,
TEMP_CELSIUS

Support new ClimateEntityFeature.TURN_ON and *.TURN_OFF functionality

References:
https://developers.home-assistant.io/blog/2022/05/03/constants-deprecations/
https://developers.home-assistant.io/blog/2024/01/24/climate-climateentityfeatures-expanded/
@haggis663 haggis663 merged commit 6037552 into haggis663:master Jul 15, 2024
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.

2 participants