Fix config key lookup
This commit is contained in:
parent
1112bc03d4
commit
492dd716b9
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class UltimakerBot(Plugin):
|
||||||
async def poll(self) -> None:
|
async def poll(self) -> None:
|
||||||
async with aiohttp.ClientSession(read_timeout=15, conn_timeout=5) as http:
|
async with aiohttp.ClientSession(read_timeout=15, conn_timeout=5) as http:
|
||||||
while True:
|
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')
|
self.log.debug('Polling ultimaker print job state')
|
||||||
try:
|
try:
|
||||||
job, changed = await self.update_ultimaker_job(http)
|
job, changed = await self.update_ultimaker_job(http)
|
||||||
|
|
Loading…
Reference in a new issue