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 Hass 2024.2 climate entity deprecation #1341

Closed
Soltinioo opened this issue Feb 8, 2024 · 9 comments
Closed

Fix Hass 2024.2 climate entity deprecation #1341

Soltinioo opened this issue Feb 8, 2024 · 9 comments
Labels
bug Something isn't working
Milestone

Comments

@Soltinioo
Copy link

Hi. After the update, I have a warning in the log.
Everything works ok. Thanks for your work

Logger: homeassistant.components.climate
Source: components/climate/init.py:354
Integration: Klimat (documentation, issues)
First occurred: 14:12:12 (2 occurrences)
Last logged: 14:12:12

Entity sonoff.sonoff_1000e5a55c (<class 'custom_components.sonoff.climate.XClimateTH'>) implements HVACMode(s): off, heat, cool, dry and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues
Entity sonoff.sonoff_1000e5a54f (<class 'custom_components.sonoff.climate.XClimateTH'>) implements HVACMode(s): off, heat, cool, dry and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues

@AlexxIT AlexxIT added the invalid This doesn't seem right label Feb 9, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 9, 2024

Correct message - please check that you are using the latest version of the component

@AlexxIT AlexxIT closed this as completed Feb 9, 2024
@Soltinioo
Copy link
Author

Correct message - please check that you are using the latest version of the component

I use version SonoffLAN v3.5.4
Core 2024.2.0
Supervisor 2024.01.1
Operating System 11.5

Firmware of TH16R2 : 3.5.0

previously, before the update to HA 2024.02, this information was not in the log

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 9, 2024

Please show device diagnostics

@Soltinioo
Copy link
Author

@AlexxIT AlexxIT added bug Something isn't working and removed invalid This doesn't seem right labels Feb 10, 2024
@AlexxIT AlexxIT reopened this Feb 10, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 10, 2024

I can see you using latest version. Are you sure you have this warning with this version?

@Soltinioo
Copy link
Author

Yes. It showed after updating to 2024.2.0. There was no warning before

@RealLord
Copy link

@AlexxIT If you can defeat this alert, can you explain what are you doing for this?
I have the same warning in another climate integration, i was implemented all needed methods, but warning still present. And this issue doesn't have clear explanation in documentation.
Adding this into integraton doesn't disable warning:

    def turn_on(self) -> None:
        pass
    def turn_off(self) -> None:
        pass

@AlexxIT AlexxIT changed the title Sonoff TH16 warning - 2024.2.0 Fix Hass 2024.2 climate entity deprication Feb 12, 2024
@AlexxIT AlexxIT changed the title Fix Hass 2024.2 climate entity deprication Fix Hass 2024.2 climate entity deprecation Feb 12, 2024
@AlexxIT AlexxIT added this to the v3.5.5 milestone Feb 12, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 16, 2024

@AlexxIT AlexxIT closed this as completed Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants