rroller / dahua

Dahua Camera and Doorbell Home Assistant Integration
MIT License
369 stars 71 forks source link

Upcoming issue with Home Assistant 2025.1 #334

Closed TheSpoon98 closed 2 months ago

TheSpoon98 commented 5 months ago

Camera (<class 'custom_components.dahua.camera.DahuaCamera'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <CameraEntityFeature.STREAM: 2>

https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Issue pasted per the HA 2024.2 logs.

andyfrei commented 5 months ago

Logger: homeassistant.components.camera Source: helpers/deprecation.py:205 Integration: Kamera (documentation, issues) First occurred: 07:57:29 (2 occurrences) Last logged: 07:57:29

SUPPORT_STREAM was used from dahua, 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/rroller/dahua/issues

tomlut commented 4 months ago

Duplicate of https://github.com/rroller/dahua/issues/328

rroller commented 2 months ago

Fixed by merging adutchak's PR and released in 0.9.52 https://github.com/rroller/dahua/releases/tag/0.9.52