From 492dd716b9607b7f043c1bbb662f7f6412bc5a04 Mon Sep 17 00:00:00 2001 From: s3lph Date: Sun, 16 Jan 2022 20:07:01 +0100 Subject: [PATCH] Fix config key lookup --- me.s3lph.ultimaker/ultimaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/me.s3lph.ultimaker/ultimaker.py b/me.s3lph.ultimaker/ultimaker.py index 7009a66..24505ce 100644 --- a/me.s3lph.ultimaker/ultimaker.py +++ b/me.s3lph.ultimaker/ultimaker.py @@ -235,7 +235,7 @@ class UltimakerBot(Plugin): async def poll(self) -> None: async with aiohttp.ClientSession(read_timeout=15, conn_timeout=5) as http: while True: - await asyncio.sleep(self.config['webhook'].get('interval', 60)) + await asyncio.sleep(self.config['poll'].get('interval', 60)) self.log.debug('Polling ultimaker print job state') try: job, changed = await self.update_ultimaker_job(http)