Skip to content

Commit

Permalink
align typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kubealex committed Aug 26, 2023
1 parent a8ae300 commit 88a3afa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/event_source/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@
import asyncio
import json
import logging
from typing import Any, dict
from typing import Any, Dict

import aiomqtt as aiomqtt


async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None:
async def main(queue: asyncio.Queue, args: Dict[str, Any]) -> None:
"""Receive events via a MQTT topic."""
logger = logging.getLogger()

topic = args.get("topic")

host = args.get("host")
port = args.get("port")
port = int(args.get("port"))
username = args.get("username")
password = args.get("password")

Expand Down

0 comments on commit 88a3afa

Please sign in to comment.