-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reolink prevent ONVIF push being lost due to ConnectionResetError (#9…
…1070) * Make "Connection lost" error less likely * Handle connection loss during ONVIF event reading * tweak * fix styling * catch asyncio.CancelledError from request.text() * missing () * re-raise cancelation for proper cleanup * Simplify * Also set webhook_reachable if connection lost * fix styntax * Send HTTP_OK directly after data read done * protect agains garbage collection * Protect shielded task (inner) not shielded future (outer) * fix black * Make sure exceptions are logged * fix spelling * fix black * fix spelling * Simplify using hass.async_create_task * clarify comment * Eleborate comment * Update homeassistant/components/reolink/host.py Co-authored-by: J. Nick Koston <nick@koston.org> * Apply suggestions from bdraco --------- Co-authored-by: J. Nick Koston <nick@koston.org>
- Loading branch information
1 parent
1379ad6
commit adc8a13
Showing
1 changed file
with
51 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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