core/homeassistant/components/reolink
starkillerOG adc8a13f93
Reolink prevent ONVIF push being lost due to ConnectionResetError (#91070)
* 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>
2023-04-14 21:05:22 -04:00
..
__init__.py
binary_sensor.py Bump reolink-aio to 0.5.10 (#90963) 2023-04-06 14:35:22 -04:00
button.py
camera.py
config_flow.py Reolink config flow fix custom port when USE_HTTPS not selected (#91137) 2023-04-10 12:44:25 -04:00
const.py
entity.py
exceptions.py
host.py Reolink prevent ONVIF push being lost due to ConnectionResetError (#91070) 2023-04-14 21:05:22 -04:00
light.py
manifest.json Bump reolink-aio to 0.5.10 (#90963) 2023-04-06 14:35:22 -04:00
number.py
select.py Add async_write_ha_state to Reolink select (#90764) 2023-04-04 11:48:14 +02:00
siren.py
strings.json Reolink late review comments (#90668) 2023-04-03 07:22:38 +02:00
switch.py
update.py