Skip to content

Commit

Permalink
Fix initialization of some denonavr receivers when telnet API is en…
Browse files Browse the repository at this point in the history
…abled (home-assistant#127882)

Suppress `denonavr.exceptions.AvrProcessingError` when connecting to telnet API
  • Loading branch information
ol-iver authored Oct 14, 2024
1 parent 11e8e56 commit df52f3f
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()
if self._update_audyssey:
await zone.async_update_audyssey()
await receiver.async_telnet_connect()
Expand Down

0 comments on commit df52f3f

Please sign in to comment.