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

Lots of deprecated constants warnings #24

Open
Alfamonk opened this issue Mar 4, 2024 · 0 comments
Open

Lots of deprecated constants warnings #24

Alfamonk opened this issue Mar 4, 2024 · 0 comments

Comments

@Alfamonk
Copy link

Alfamonk commented Mar 4, 2024

Hello!
I've been using salusfy for a while, without issues. But since the last HA update, I get a ton of warnings/errors regarding this. I will post a screenshot and copy/paste the logs. Please let me know how to fix these issues.

Logger: homeassistant.components.climate
Source: components/climate/__init__.py:354
Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
First occurred: 1:25:45 AM (1 occurrences)
Last logged: 1:25:45 AM

Entity None (<class 'custom_components.salusfy.climate.SalusThermostat'>) implements HVACMode(s): heat, 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/floringhimie/salusfy/issues

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:1567
First occurred: 1:25:45 AM (1 occurrences)
Last logged: 1:25:45 AM

Entity None (<class 'custom_components.salusfy.climate.SalusThermostat'>) 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/floringhimie/salusfy/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 1:25:42 AM (1 occurrences)
Last logged: 1:25:42 AM

TEMP_CELSIUS was used from salusfy, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/floringhimie/salusfy/issues
Logger: homeassistant.components.climate.const
Source: helpers/deprecation.py:205
Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
First occurred: 1:25:42 AM (5 occurrences)
Last logged: 1:25:42 AM

CURRENT_HVAC_HEAT was used from salusfy, 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/floringhimie/salusfy/issues
CURRENT_HVAC_IDLE was used from salusfy, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.IDLE instead, please create a bug report at https://github.com/floringhimie/salusfy/issues
HVAC_MODE_HEAT was used from salusfy, 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/floringhimie/salusfy/issues
HVAC_MODE_OFF was used from salusfy, 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/floringhimie/salusfy/issues
SUPPORT_TARGET_TEMPERATURE was used from salusfy, 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/floringhimie/salusfy/issues

2024-03-04_103332

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

No branches or pull requests

1 participant