forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip fetching scene collections for Hub v1.
Fixes openhab#11856 Signed-off-by: Jacob Laursen <[email protected]>
- Loading branch information
Showing
5 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
...src/main/java/org/openhab/binding/hdpowerview/internal/api/responses/FirmwareVersion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* Copyright (c) 2010-2021 Contributors to the openHAB project | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* http://www.eclipse.org/legal/epl-2.0 | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
package org.openhab.binding.hdpowerview.internal.api.responses; | ||
|
||
import org.openhab.binding.hdpowerview.internal.api.responses.FirmwareVersion.Firmware.MainProcessor; | ||
|
||
/** | ||
* Firmware information for an HD PowerView hub | ||
* | ||
* @author Jacob Laursen - Initial contribution | ||
*/ | ||
public class FirmwareVersion { | ||
public Firmware firmware; | ||
|
||
public static class Firmware { | ||
public MainProcessor mainProcessor; | ||
public Radio radio; | ||
|
||
public static class MainProcessor { | ||
public String name; | ||
public int revision; | ||
public int subRevision; | ||
public int build; | ||
|
||
@Override | ||
public String toString() { | ||
return String.format("name:%s, revision:%d, subRevision:%d, build:%d", name, revision, subRevision, | ||
build); | ||
} | ||
} | ||
|
||
public static class Radio { | ||
public int revision; | ||
public int subRevision; | ||
public int build; | ||
} | ||
} | ||
|
||
public MainProcessor getMainProcessor() { | ||
if (firmware != null) { | ||
return firmware.mainProcessor; | ||
} | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters