mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix unreachable DenonAVR reporting as available when polling fails (#74344)
This commit is contained in:
parent
f975d30258
commit
b5c5531180
@ -204,12 +204,14 @@ class DenonDevice(MediaPlayerEntity):
|
||||
)
|
||||
self._available = False
|
||||
except AvrCommandError as err:
|
||||
available = False
|
||||
_LOGGER.error(
|
||||
"Command %s failed with error: %s",
|
||||
func.__name__,
|
||||
err,
|
||||
)
|
||||
except DenonAvrError as err:
|
||||
available = False
|
||||
_LOGGER.error(
|
||||
"Error %s occurred in method %s for Denon AVR receiver",
|
||||
err,
|
||||
|
Loading…
x
Reference in New Issue
Block a user