api: fix variable misnomer failing at program shutdown
All checks were successful
Build Container / Build Container (push) Successful in 1m27s

This commit is contained in:
lilly 2026-05-19 17:12:59 +02:00
commit 319670b6ae
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -93,7 +93,7 @@ class CCUJackClient:
await self.mqtt.connect()
await self.find_locks()
self.task_find_locks = asyncio.get_running_loop().create_task(
self.task_cron= asyncio.get_running_loop().create_task(
self.cron(), name="ccujack-cron"
)
self.task_process_messages = asyncio.get_running_loop().create_task(
@ -104,8 +104,8 @@ class CCUJackClient:
await asyncio.gather(self.mqtt.disconnect(), self.http.close())
self.task_process_messages.cancel()
self.task_process_messages = None
self.task.cron.cancel()
self.task.cron = None
self.task_cron.cancel()
self.task_cron = None
async def find_locks(self):
logger.debug("Inspecting lock devices present in CCUJack")