Use go2rtc native streaming instead of ffmpeg#541
Merged
Conversation
Copy Dahua brand icons and logos from the home-assistant/brands repository into custom_components/dahua/brand/ so HACS validation no longer needs to fall back to the brands repository. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add brand assets for HACS validation
Set frontend_stream_type to WEB_RTC so Home Assistant uses go2rtc for camera streams instead of transcoding via ffmpeg. This reduces CPU usage and latency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… reauth - Fix session leak in config_flow._test_credentials() by adding finally clause - Fix session leak on unload by calling coordinator.async_stop() which closes session - Fix != None to is not None in _close_session() - Replace DahuaEventThread/DahuaVtoEventThread with native async tasks - Replace threading.Timer in VTO client with loop.call_later() - Replace loop.stop() in VTO with disconnected future for clean reconnect - Fix swallowed exceptions in client.stream_events() (re-raise CancelledError) - Add reauthentication flow triggered on HTTP 401 during initialization - Delete thread.py (no longer needed) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
72b2586 to
a07e7a7
Compare
Owner
|
Thanks! I'll give this a try! |
rroller
approved these changes
Mar 8, 2026
|
This section in the README is probably outdated now: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
frontend_stream_typetoStreamType.WEB_RTCon camera entities so Home Assistant uses go2rtc for camera streams instead of transcoding via ffmpegTest plan
🤖 Generated with Claude Code