Skip to content

Commit

Permalink
Fixes openhab#16990 - Gen1 nbo longer initializes when defined in .th…
Browse files Browse the repository at this point in the history
…ings (openhab#17009)

Signed-off-by: Markus Michels <[email protected]>
  • Loading branch information
markus7017 authored and joni1993 committed Oct 15, 2024
1 parent 62b4d79 commit 701d7b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public ShellyBaseHandler(final Thing thing, final ShellyTranslationProvider tran
Map<String, String> properties = thing.getProperties();
String gen = getString(properties.get(PROPERTY_DEV_GEN));
String thingType = getThingType();
gen2 = !"1".equals(gen) || ShellyDeviceProfile.isGeneration2(thingType);
blu = ShellyDeviceProfile.isBluSeries(thingType);
gen2 = "2".equals(gen) || "3".equals(gen) || blu || ShellyDeviceProfile.isGeneration2(thingType);
this.api = !blu ? !gen2 ? new Shelly1HttpApi(thingName, this) : new Shelly2ApiRpc(thingName, thingTable, this)
: new ShellyBluApi(thingName, thingTable, this);
if (gen2) {
Expand Down

0 comments on commit 701d7b8

Please sign in to comment.