CJNE / pymyenergi

An async python library for interfacing with MyEnergi devices
MIT License
19 stars 15 forks source link

OAuth improvements and new status codes #43

Closed trizmark closed 2 months ago

trizmark commented 3 months ago

This PR adds further functionality that's related to the libbi. The main change is to return 'None' as property values when OAuth is required, but no credentials are defined. The HA integration uses these None values to display entities as unavailable if OAuth is missing. The PR adds a few new libbi status codes. Also fixed a couple of linting errors.

trizmark commented 3 months ago

I also added a "--skip-oauth" flag to the cli, so it doesn't ask for app email/password (for users without libbi)

trizmark commented 2 months ago

@CJNE Apologies for the tag, but do you think you could review this PR? The HA integration PR depends on this one. Thanks!