Fix unreachable DenonAVR reporting as available when polling fails (#74344)
This commit is contained in:
parent
f975d30258
commit
b5c5531180
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue