From ac0dbdd11a0d4b325619682bf26e2f8e6ac9da64 Mon Sep 17 00:00:00 2001 From: Luke Bonaccorsi Date: Wed, 28 Feb 2024 18:32:21 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20missed=20underscores=20=F0=9F=A4=A6?= =?UTF-8?q?=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom_components/robovac/tuyalocalapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/robovac/tuyalocalapi.py b/custom_components/robovac/tuyalocalapi.py index 55c7abb..ce104f5 100644 --- a/custom_components/robovac/tuyalocalapi.py +++ b/custom_components/robovac/tuyalocalapi.py @@ -721,7 +721,7 @@ async def async_connect(self): self._connected = True if self._ping_task is None: - self.ping_task = asyncio.create_task(self.async_ping(self.ping_interval)) + self._ping_task = asyncio.create_task(self.async_ping(self.ping_interval)) asyncio.create_task(self._async_handle_message()) @@ -780,7 +780,7 @@ async def async_ping(self, ping_interval): self._queue.append(message) await asyncio.sleep(ping_interval) - self.ping_task = asyncio.create_task(self.async_ping(self.ping_interval)) + self._ping_task = asyncio.create_task(self.async_ping(self.ping_interval)) if self.last_pong < self.last_ping: await self.async_disconnect()