mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Signed-off-by: Markus Michels <markus7017@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
f09d0d7a1e
commit
3014873bd1
@ -156,8 +156,8 @@ public abstract class ShellyBaseHandler extends BaseThingHandler
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user