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 GitHub
parent fcd0a877d6
commit aeb00823aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,8 +426,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: