Skip to content

Commit

Permalink
fix: missed underscores 🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeFoodPixels committed Feb 28, 2024
1 parent 96a155d commit ac0dbdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/robovac/tuyalocalapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit ac0dbdd

Please sign in to comment.