Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

MiOS: Work-around issue where update() called before config loaded (openHAB 2.0) #3871

Merged
merged 1 commit into from
Jan 22, 2016

Conversation

mrguessed
Copy link
Contributor

Under openHAB 2.0, the update() method is called before the corresponding config.cfg/mios.cfg file is loaded.

We're called again, after these are correctly loaded, so we'll skip over the call if the properties are passed as null.

Also removed an unused variable that Eclipse highlighted.

Signed-off-by: Mark Clark mr.guessed@gmail.com

Under openHAB 2.0, the `update()` method is called before
the corresponding `config.cfg/mios.cfg` file is loaded.

We're called again, after these are correctly loaded, so we'll
skip over the call if the properties are passed as null.

Signed-off-by: Mark Clark <mr.guessed@gmail.com>
@kaikreuzer
Copy link
Member

Cool, thanks!

kaikreuzer added a commit that referenced this pull request Jan 22, 2016
MiOS: Work-around issue where update() called before config loaded (openHAB 2.0)
@kaikreuzer kaikreuzer merged commit c907937 into openhab:master Jan 22, 2016
@mrguessed mrguessed added this to the 1.9.0 milestone Jan 29, 2016
@mrguessed mrguessed self-assigned this Jan 29, 2016
@mrguessed mrguessed added the bug label Jan 29, 2016
@kaikreuzer kaikreuzer modified the milestones: 1.9.0, 1.9.0.b2 Feb 1, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants