Closed GeorgeSG closed 3 years ago
Thanks for the PR. I am on vacation and will merge it next week.
Merged. Let me know if you want me to release a new version on PyPI with this.
@rgerganov thank you! And yes, a new version will be great :)
I have pushed v2.1.0 -- https://pypi.org/project/py-air-control/2.1.0/
I want to use
pi-air-control
in a custom Home Assistant component, wrapping it in asyncio. Home Assistant is complaining when it detects I/O in it's event loop.This adds
debug
option toHTTPAirClient
similar toCoAPAirClient
. Whendebug
isFalse
, the client won't print.For instances of
HTTPAirClient
debug defaults toFalse
. ForHTTPAirCli
it defaults toTrue
to preserve current behavior.I suggest passing the debug value from
args.debug
toHTTPAirCli
in the future, but that will change the current behavior.