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 warnings in climate #1685

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

vmartinv
Copy link

@vmartinv vmartinv commented Mar 9, 2024

I'm receiving these warnings on deprecated features in home assistant. Better to fix them before climate breaks completely. The solution is quite simple, after this PR I'm getting zero warnings.

Here's the docs I could find about the problem: https://developers.home-assistant.io/blog/2024/01/24/climate-climateentityfeatures-expanded/

2024-03-09 10:34:00.770 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.localtuya.climate.LocaltuyaClimate'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE: 1>, please create a bug report at https://github.com/rospogrigio/localtuya/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-03-09 10:34:00.770 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.localtuya.climate.LocaltuyaClimate'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/rospogrigio/localtuya/issues
2024-03-09 10:34:00.771 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.localtuya.climate.LocaltuyaClimate'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/rospogrigio/localtuya/issues
2024-03-09 10:34:00.771 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.localtuya.climate.LocaltuyaClimate'>) implements HVACMode(s): heat, auto, 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/rospogrigio/localtuya/issues

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.

None yet

2 participants