Fix config key lookup

This commit is contained in:
s3lph 2022-01-16 20:07:01 +01:00
parent 1112bc03d4
commit 492dd716b9
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5

View file

@ -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)