From 164f09c1f0f6c9442277b6fc6753039e37ea6ac2 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Fri, 22 Oct 2021 23:22:10 +1100 Subject: [PATCH] Sleep between device requests to detect socket closes (#58087) --- homeassistant/components/dlna_dmr/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/dlna_dmr/data.py b/homeassistant/components/dlna_dmr/data.py index d7b330f0fe8..07046ba4acc 100644 --- a/homeassistant/components/dlna_dmr/data.py +++ b/homeassistant/components/dlna_dmr/data.py @@ -37,7 +37,7 @@ class DlnaDmrData: """Initialize global data.""" self.lock = asyncio.Lock() session = aiohttp_client.async_get_clientsession(hass, verify_ssl=False) - self.requester = AiohttpSessionRequester(session, with_sleep=False) + self.requester = AiohttpSessionRequester(session, with_sleep=True) self.upnp_factory = UpnpFactory(self.requester, non_strict=True) self.event_notifiers = {} self.event_notifier_refs = defaultdict(int)