dahua icon indicating copy to clipboard operation
dahua copied to clipboard

Upcoming issue with Home Assistant 2025.1

Open TheSpoon98 opened this issue 1 year ago • 2 comments

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.

TheSpoon98 avatar Feb 08 '24 13:02 TheSpoon98

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

andyfrei avatar Feb 11 '24 07:02 andyfrei

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

tomlut avatar Feb 25 '24 04:02 tomlut

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

rroller avatar May 04 '24 19:05 rroller