Skip to content

Commit

Permalink
Suppress denonavr.exceptions.AvrProcessingError when connecting to …
Browse files Browse the repository at this point in the history
…telnet API
  • Loading branch information
ol-iver committed Oct 7, 2024
1 parent 4c175a3 commit 142e7ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/denonavr/receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
from __future__ import annotations

from collections.abc import Callable
import contextlib
import logging

from denonavr import DenonAVR
from denonavr.exceptions import AvrProcessingError
import httpx

_LOGGER = logging.getLogger(__name__)
Expand Down Expand Up @@ -94,7 +96,8 @@ async def async_init_receiver_class(self) -> None:
# Do an initial update if telnet is used.
if self._use_telnet:
for zone in receiver.zones.values():
await zone.async_update()
with contextlib.suppress(AvrProcessingError):
await zone.async_update()

Check warning on line 100 in homeassistant/components/denonavr/receiver.py

View check run for this annotation

Codecov / codecov/patch

homeassistant/components/denonavr/receiver.py#L99-L100

Added lines #L99 - L100 were not covered by tests
if self._update_audyssey:
await zone.async_update_audyssey()
await receiver.async_telnet_connect()
Expand Down

0 comments on commit 142e7ba

Please sign in to comment.