TionAPI / HA-tion

Home assistant integration for Tion breezers
Apache License 2.0
70 stars 5 forks source link

Предупреждения в HA 2024.2.1 #129

Open tms320 opened 6 months ago

tms320 commented 6 months ago

Здравствуйте! Увидел два предупреждения в логе Home Assistant 2024.2.1:

Logger: homeassistant.components.climate
Source: components/climate/__init__.py:354
Integration: Климат (documentation, issues)
First occurred: 21:28:28 (3 occurrences)
Last logged: 21:28:28
Entity None (<class 'custom_components.ha_tion_btle.climate.TionClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please report it to the author of the 'ha_tion_btle' custom integration
Entity None (<class 'custom_components.ha_tion_btle.climate.TionClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please report it to the author of the 'ha_tion_btle' custom integration
Entity None (<class 'custom_components.ha_tion_btle.climate.TionClimateEntity'>) implements HVACMode(s): heat, fan_only, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please report it to the author of the 'ha_tion_btle' custom integration

Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 21:28:28 (2 occurrences)
Last logged: 21:28:28
TEMP_CELSIUS was used from ha_tion_btle, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'ha_tion_btle' custom integration

PS: у меня бризер Tion 4s

IATkachenko commented 6 months ago

Спасибо что обратили внимание!

Способ работы с единицами температуры поправлю, ClimateEntityFeature тоже посмотрю. Срочности у этого нет, на работоспособность (пока) не влияет, так что -- при случае.