Skip to content

Commit

Permalink
Merge pull request #3 from flavio-fernandes/py3.7
Browse files Browse the repository at this point in the history
Make it python 3.7 compatible
  • Loading branch information
flavio-fernandes authored Jul 23, 2021
2 parents 1c6f8c4 + acf2c33 commit 6969c83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ $bootstrap_ubuntu = <<SCRIPT
apt update
apt install -y software-properties-common
add-apt-repository -y ppa:deadsnakes/ppa
apt install -y python3.9 python3.9-venv
ln -sf python3.9 /usr/bin/python3
apt install -y python3.7 python3.7-venv
ln -sf python3.7 /usr/bin/python3
SCRIPT

Expand Down
5 changes: 4 additions & 1 deletion mqtt2kasa/keep_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ async def handle_main_event_mqtt_ka(


async def handle_keep_alives(
kasas: dict[str, Kasa], kas: dict[str, KeepAlive], mqtt_send_q: asyncio.Queue
# 3.9: kasas: dict[str, Kasa], kas: dict[str, KeepAlive], mqtt_send_q: asyncio.Queue
kasas: dict,
kas: dict,
mqtt_send_q: asyncio.Queue,
):
if not kas:
logger.info(
Expand Down

0 comments on commit 6969c83

Please sign in to comment.