def async_unsubscribe_all(self):
"""
Disconnect from device.
This removes all UpnpServices.
"""
_LOGGER.debug('%s.async_disconnect()', self)
if not self._device:
return
for service in self._device.services.values():
try:
sid = service.subscription_sid
if sid:
self._callback_view.unregister_service(sid)
yield from service.async_unsubscribe(True)
except (asyncio.TimeoutError, aiohttp.ClientError):
pass
评论列表
文章目录