mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 10:08:23 +00:00
Log reason for DLNA-DMR device becoming unavailable (#57516)
This commit is contained in:
parent
acb6c4ea1d
commit
6193b31072
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user