Cleanedup property names

This commit is contained in:
Ziver Koc 2020-07-24 00:39:11 +02:00
parent c3731ca4b4
commit 12a6c1d31b
5 changed files with 14 additions and 9 deletions

View file

@ -42,8 +42,8 @@ public class HalZWaveController implements HalSensorController, HalEventControll
@Override
public boolean isAvailable() {
return HalContext.getStringProperty(CONFIG_ZWAVE_PORT) != null &&
HalContext.getStringProperty(CONFIG_ZWAVE_CFG_PATH) != null;
return HalContext.containsProperty(CONFIG_ZWAVE_PORT) &&
HalContext.containsProperty(CONFIG_ZWAVE_CFG_PATH);
}
@Override
public void initialize() {