Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it python 3.7 compatible #3

Merged
merged 1 commit into from
Jul 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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