vdbg / hubibtpresence

Bluetooth scanner for Hubitat
MIT License
0 stars 0 forks source link

problem with type object subscriptability? #5

Closed joelgroves closed 1 year ago

joelgroves commented 2 years ago

Not sure how to resolve this issue?

python3 main.py Traceback (most recent call last): File "main.py", line 9, in from hubitat import Hubitat File "/home/Joel/Documents/hubibtpresence/hubibtpresence/hubitat.py", line 13, in class Hubitat: File "/home/Joel/Documents/hubibtpresence/hubibtpresence/hubitat.py", line 20, in Hubitat def get_all_devices(self) -> dict[int, Device]: TypeError: 'type' object is not subscriptable

EDIT: Eek, should have correctly read the minimum Python version is 3.9.0 (my tired eyes saw this as 3.8.0).

vdbg commented 2 years ago

Sorry for that; will add some code to fail with proper error msg