Leggin / dirigera

This repository provides an unofficial Python client for controlling the IKEA Dirigera Smart Home Hub.
MIT License
105 stars 20 forks source link

Add import json to example / I needed to change ws: Any to ws: any #5

Closed broswell closed 1 year ago

broswell commented 1 year ago

Thanks for writing this! Works great to read my new Ikea Vindstyrka air quality monitor via Dirigera.

Consider adding import json to your example.

Not sure why (I tried to understand) by when I ran sample using Python 3.10 I got NameError: name 'Any' is not defined. Did you mean: 'any'?

I changed Any to any, and I am successfully pulling data!

Leggin commented 1 year ago

Thanks for the input, I will add import json. Regarding the issue with Any, it's a similar problem I will add from typing import Any.

_Using any is not correct here since it is a function . Python doesnt complain though because it doesnt check types. You would need to run mypy to see the problem._