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

'type' object is not subscriptable #1

Closed
jmutnick opened this issue Apr 12, 2021 · 3 comments
Closed

'type' object is not subscriptable #1

jmutnick opened this issue Apr 12, 2021 · 3 comments

Comments

@jmutnick
Copy link

Getting this error. Any suggesstions?

(env) pi@home-assistant-pi4:~/sh/kasa/mqtt2kasa $ python3 mqtt2kasa/main.py ./data/config.yaml
Traceback (most recent call last):
File "mqtt2kasa/main.py", line 12, in
from mqtt2kasa.keep_alive import (
File "/home/pi/sh/kasa/mqtt2kasa/mqtt2kasa/keep_alive.py", line 76, in
kasas: dict[str, Kasa], kas: dict[str, KeepAlive], mqtt_send_q: asyncio.Queue
TypeError: 'type' object is not subscriptable

@jmutnick jmutnick changed the title type' object is not subscriptable 'type' object is not subscriptable Apr 12, 2021
@jmutnick
Copy link
Author

These are version of the components installed:

Successfully installed anyio-2.2.0 asyncclick-7.1.2.3 asyncio-mqtt-0.8.1 asyncio-throttle-1.0.2 idna-3.1 importlib-metadata-3.10.0 paho-mqtt-1.5.1 python-kasa-0.4.0.dev2 pyyaml-5.4.1 sniffio-1.2.0 typing-extensions-3.7.4.3 zipp-3.4.1

@flavio-fernandes
Copy link
Owner

flavio-fernandes commented Apr 12, 2021 via email

@jmutnick
Copy link
Author

Upgraded to 3.9.4 and it is working now. Thanks!

@flavio-fernandes flavio-fernandes pinned this issue May 3, 2021
flavio-fernandes pushed a commit that referenced this issue May 27, 2024
add support to change brightness on supported devices
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants