deprecated constant which will be removed in HA Core 2025.1
Closed this issue ยท 22 comments
`Logger: homeassistant.components.climate.const
Source: helpers/deprecation.py:204
Integration: Klima (documentation, issues)
First occurred: 13:10:42 (13 occurrences)
Last logged: 13:10:42
CURRENT_HVAC_OFF was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.OFF instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
SUPPORT_FAN_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
SUPPORT_SWING_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
SUPPORT_PRESET_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
SUPPORT_TARGET_TEMPERATURE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues`
and
`Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1520
First occurred: 13:10:44 (59 occurrences)
Last logged: 13:10:44
Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|SWING_MODE: 41>, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation`
Similar here
2024-01-05 21:19:16.172 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_DRY was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.174 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_COOL was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.COOL instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.177 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.179 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.181 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.HEATING instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.182 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_COOL was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.COOLING instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.183 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_DRY was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.DRYING instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.184 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_FAN was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.FAN instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.186 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_OFF was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.OFF instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.187 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.188 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_SWING_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.SWING_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.189 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_PRESET_MODE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:16.192 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from tasmota_irhvac, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
2024-01-05 21:19:17.319 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|PRESET_MODE|SWING_MODE: 57>, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-05 21:19:17.320 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|PRESET_MODE|SWING_MODE: 57>, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-05 21:19:17.320 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature.TARGET_TEMPERATURE|FAN_MODE|PRESET_MODE|SWING_MODE: 57>, please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
I have edited the files, as per error suggestions. Seems like the errors have gone and all is working fine for me on my home assistant os.
Core 2024.1.5
Supervisor 2023.12.1
Operating System 11.4
Frontend 20240104.0
I do not know coding/python etc. I just followed the comments and trial and error method. Not sure if it will work for everyone.
If any one needs the files, I can upload them here.
Let me know.
@megarch2021 it would be great when you update it, i think it dont will be fixed from creator :(
hope this helps.
tasmota_irhvac.zip
Thank you for sharing
Working ok, no errors?
I have changed but not test yet, i do this in Summer.
But the Errors are away many thanks for that ๐๐ป
The component will be updated to use the new modes and actions. I saw the logs too. When I have time I'll update it. Just to mention that even the clime entity in home assistant is using the "old and deprecated" constant and variables. As a temporary workarround just adjust the logger level of Tasmota Irhvac to lower level. A little dissapointing behaviour from HA to spam everyone more than one year earlier, when their own integrations uses the "deprecated" constants and variables. I will fix it when I have enought time. Please accept my apologies for the delay!
Logger: homeassistant.components.climate
Source: components/climate/init.py:354
Integration: Climatizzatore (documentation, issues)
First occurred: 15:08:37 (3 occurrences)
Last logged: 15:08:37
Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/hristo-atanasov/Tasmota-IRHVAC/issues
Entity None (<class 'custom_components.tasmota_irhvac.climate.TasmotaIrhvac'>) implements HVACMode(s): heat, cool, dry, 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/hristo-atanasov/Tasmota-IRHVAC/issues
@megarch2021 jo Bro ๐, do you have fixed the new ha Version Errors in your Environment too? Greetz
@megarch2021 jo Bro ๐, do you have fixed the new ha Version Errors in your Environment too? Greetz
No, i cant get my head around how to fix this logically. As mentioned before i am no programmer. LOL. I just do trial and error methods. But i dont know where to start with this error.
ClimateEntityFeature.TURN_OFF
ClimateEntityFeature.TURN_ON
I tried again and errors have gone for now.
I think it still is not fully as per Hassio guides for climate entity. But it works for now.
I will let the original author handle it via another revision.
Here is the zip file for now.
tasmota_irhvac-6.zip
Thank your @megarch2021, the Sommer comes quickly.
Its good that it works now ๐๐ป๐๐ป
I tried again and errors have gone for now. I think it still is not fully as per Hassio guides for climate entity. But it works for now. I will let the original author handle it via another revision. Here is the zip file for now. tasmota_irhvac-6.zip
hey thanks, this fixed the errors, just hoping for the main fix from original author..
I made a fix for this issue in commit 9aeeb27. I'll wait for a while to make sure there are no issues in my environment before releasing the next version. If you find any issues, please let us know by reopening here or by opening a new issue. Thanks! ๐
You can easily try the pre-release master version. To do this, select this integration from HACS, select Redownload from the three dots in the upper right corner, and you can select the version to download. Select master from the list and download it to try the latest version of git at that time.
Ah okay good to know thanks.
But master cant be select, he switch alsways back to latest version
You'll probably have to wait a few seconds to make your selection, and then you'll have to wait a few more seconds after your selection before it will download.
EDIT: I checked and it seems that you can't select the version. Let's take a look.
Click on Update infomation from the three dots on the HACS screen of this integration, wait a while, and refresh your browser. I was then able to select it.
Me too, it works
Not for me, but no problem i make is manuelly until the release comes ;) thanks for your help
Nice! Thank you, @nao-pon ! I made almost the same changes, before almost 2 weeks, but I decided to test it first. I'll update from here.