mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Log reason for DLNA-DMR device becoming unavailable (#57516)
This commit is contained in:
parent
fcd0a877d6
commit
aeb00823aa
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user