Log reason for DLNA-DMR device becoming unavailable (#57516)

This commit is contained in:
Michael Chisholm 2021-10-16 04:24:04 +11:00 committed by Paulus Schoutsen
parent acb6c4ea1d
commit 6193b31072

View File

@ -404,8 +404,8 @@ class DlnaDmrEntity(MediaPlayerEntity):
try:
do_ping = self.poll_availability or self.check_available
await self._device.async_update(do_ping=do_ping)
except UpnpError:
_LOGGER.debug("Device unavailable")
except UpnpError as err:
_LOGGER.debug("Device unavailable: %r", err)
await self._device_disconnect()
return
finally: