roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

Integration is using deprecated supported features values #142

Open Extreme79 opened 6 months ago

Extreme79 commented 6 months ago

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_

GiaMisu commented 6 months ago

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

roleoroleo commented 6 months ago

I think this issue is already fixed (but not released). https://github.com/roleoroleo/yi-hack_ha_integration/commit/bac299058af2a887d5b8dd67611f6c0e98cf7acd https://github.com/roleoroleo/yi-hack_ha_integration/commit/325b04687c1b600d4251dec72781934c98e2e18f

Kaeybe commented 3 months ago

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

roleoroleo commented 3 months ago

Fixed here: https://github.com/roleoroleo/yi-hack_ha_integration/commit/7bb48091ce0f8591b4845a56194f298d2523001b

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.