Integration is using deprecated supported features values
Extreme79 opened this issue · comments
Hi!
As home assistant log is reporting me,
Entity camera.xxxxxxxxx (<class 'custom_components.yi_hack.camera.YiHackCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.ON_OFF|STREAM: 3>, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
same error, these warnings appear in the logs:
Entity camera.yi_hack_m_XXXXXX_cam (<class 'custom_components.yi_hack.camera.YiHackCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.ON_OFF|STREAM: 3>, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
00:02:24 – (AVVISO) helpers/entity.py - il messaggio si è verificato per la prima volta alle 00:02:24 e compare 2 volte
DEVICE_CLASS_CONNECTIVITY was used from yi_hack, this is a deprecated constant which will be removed in HA Core 2025.1. Use BinarySensorDeviceClass.CONNECTIVITY instead, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues
00:02:24 – (AVVISO) Sensore binario - il messaggio si è verificato per la prima volta alle 00:02:24 e compare 6 volte
SUPPORT_ON_OFF was used from yi_hack, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues
00:02:24 – (AVVISO) Telecamera - il messaggio si è verificato per la prima volta alle 00:02:24 e compare 4 volte
After updating HomeAssistant to 2024.3.0 , this warning appeared :
SUPPORT_ON_OFF was used from yi_hack, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.ON_OFF instead, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues
SUPPORT_STREAM was used from yi_hack, this is a deprecated constant which will be removed in HA Core 2025.1. Use CameraEntityFeature.STREAM instead, please create a bug report at https://github.com/roleoroleo/yi-hack_ha_integration/issues