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

[hue] Catch exception if 'AllGroup' does not exist #9502

Merged
merged 1 commit into from
Dec 25, 2020

Conversation

cweitkamp
Copy link
Contributor

@cweitkamp cweitkamp commented Dec 24, 2020

  • Catch exception if 'AllGroup' does not exist

Fixes #9175

// CC @olemr

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp added bug An unexpected problem or unintended behavior of an add-on additional testing preferred The change works for the pull request author. A test from someone else is preferred though. labels Dec 24, 2020
@cweitkamp cweitkamp changed the title [hue] Catch exception of 'AllGroup' does not exist [hue] Catch exception if 'AllGroup' does not exist Dec 24, 2020
@@ -425,8 +426,6 @@ public String setLightName(HueObject light, String name) throws IOException, Api
* @return all lights pseudo group
*/
public Group getAllGroup() {
requireAuthentication();
Copy link
Contributor

Choose a reason for hiding this comment

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

Was it there really for no valid reason ?
This is requiring a good analysis.

Copy link
Contributor Author

@cweitkamp cweitkamp Dec 25, 2020

Choose a reason for hiding this comment

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

The deep analysis will reveal that this method (getAllGroup()) never has been used before.

@J-N-K
Copy link
Member

J-N-K commented Dec 25, 2020

Code looks good. Woudl you want to wait for the additional testing?

@J-N-K J-N-K merged commit 750ea5f into openhab:main Dec 25, 2020
@J-N-K J-N-K added this to the 3.1 milestone Dec 25, 2020
@cweitkamp cweitkamp deleted the bugfix-9175-hue-binding branch December 25, 2020 15:51
cweitkamp added a commit that referenced this pull request Dec 27, 2020
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp modified the milestones: 3.1, 2.5.12 Dec 27, 2020
@cweitkamp cweitkamp removed the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Dec 27, 2020
seaside1 pushed a commit to seaside1/openhab-addons that referenced this pull request Dec 28, 2020
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
seaside1 pushed a commit to seaside1/openhab-addons that referenced this pull request Dec 28, 2020
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Joseph Hagberg <joseph@zoidberg.se>
@cweitkamp cweitkamp modified the milestones: 2.5.12, 3.1 Jan 10, 2021
@cweitkamp cweitkamp added the patch A PR that has been cherry-picked to a patch release branch label Jan 10, 2021
cweitkamp added a commit that referenced this pull request Jan 10, 2021
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@kaikreuzer kaikreuzer modified the milestones: 3.1, 2.5.12 Jan 27, 2021
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
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 oh25x patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[hue] OH2.5.11 & OH3.0.0RC2-1 with deconz 2.7.0 bridge goes offline after a few hundred ms
4 participants