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

WIP: Autoversion #24

Closed
wants to merge 2 commits into from
Closed

WIP: Autoversion #24

wants to merge 2 commits into from

Conversation

loial
Copy link

@loial loial commented Sep 29, 2019

Together with mgejke/asyncsector#14 this will allow for setting version to 'auto' in config, and will then fetch the version code for use in the API requests.

Currently does this check during (every) init. Maybe we should do a single fetch (AsyncSector.getapiversion) and store as a state, or some kind of variable, and only do another fetch when an update fails with INVALID VERSION...

Also I believe the first commit, the async init, does not break the current functioninality, but this might need some more testing...

Some discussion in #23 and mgejke/asyncsector#12

Oh, and until mgejke/asyncsector#14 gets merged, i do testing in loial/hass-sectoralarm@feature-autoversion-test (changing asyncsector requirement to 'https://github.com/loial/asyncsector/archive/feature-autoversion.zip#asyncsector==0.2.0' )

@loial
Copy link
Author

loial commented Sep 29, 2019

Suggestions welcome :)

@loial loial force-pushed the feature-autoversion branch from 8d6eae0 to cae70c4 Compare September 29, 2019 18:47
@mgejke
Copy link
Owner

mgejke commented Jan 1, 2020

I've merged https://github.com/mgejke/asyncsector/pull/14 and published a new version of asyncsector(0.2.1) on pip. Will try to have a look at this later.

@mgejke
Copy link
Owner

mgejke commented Jan 1, 2020

Thanks, the changes from this PR is in the master branch now!

@mgejke mgejke closed this Jan 1, 2020
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

Successfully merging this pull request may close these issues.

2 participants