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

[sleepiq] Use constructor injection for ClientBuilder #11700

Merged
merged 2 commits into from
Dec 5, 2021

Conversation

mhilbush
Copy link
Contributor

@mhilbush mhilbush commented Dec 4, 2021

Fixes #11696

There are a lot of automatically applied formatting changes in SleepIQImpl.java. The relevant changes are at the bottom of the change list.

Signed-off-by: Mark Hilbush mark@hilbush.com

Signed-off-by: Mark Hilbush <mark@hilbush.com>
@mhilbush mhilbush changed the title Use constructor injection for ClientBuilder [sleepiq] Use constructor injection for ClientBuilder Dec 4, 2021
@mhilbush mhilbush added the bug An unexpected problem or unintended behavior of an add-on label Dec 4, 2021
Signed-off-by: Mark Hilbush <mark@hilbush.com>
@mhilbush
Copy link
Contributor Author

mhilbush commented Dec 4, 2021

I pushed a second commit that more gracefully handles a case where the date-time parsing fails when the API returns this lastLink property. I believe this can happen before the bed is actually installed, but there may be other cases, as well.

"lastLink":"-00:00:01"

That change is in TimeSince.java and is again buried in a bunch of formatting changes. The real change is on new line number 101.

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@wborn wborn merged commit c1de380 into openhab:main Dec 5, 2021
@wborn wborn added this to the 3.2 milestone Dec 5, 2021
@mhilbush mhilbush deleted the use-constructor-injection branch December 5, 2021 12:19
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Dec 30, 2021
Fixes openhab#11696

Signed-off-by: Mark Hilbush <mark@hilbush.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
mischmidt83 pushed a commit to mischmidt83/openhab-addons that referenced this pull request Jan 9, 2022
Fixes openhab#11696

Signed-off-by: Mark Hilbush <mark@hilbush.com>
Signed-off-by: Michael Schmidt <mi.schmidt.83@gmail.com>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
Fixes openhab#11696

Signed-off-by: Mark Hilbush <mark@hilbush.com>
volkmarnissen pushed a commit to volkmarnissen/openhab-addons that referenced this pull request Mar 3, 2022
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
Fixes openhab#11696

Signed-off-by: Mark Hilbush <mark@hilbush.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
Fixes openhab#11696

Signed-off-by: Mark Hilbush <mark@hilbush.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[sleepiq] ClassNotFoundException when communicating with CloudIQ service
2 participants