mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-27 07:41:39 +01:00
[gardena] remove compiler warnings (#12947)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
parent
f8bbb2b5a5
commit
4036888433
@ -108,6 +108,7 @@ openhab:send WC_Valve_cmd_CloseValve.sendCommand(ON) // stop any active watering
|
|||||||
```
|
```
|
||||||
|
|
||||||
If you send a REFRESH command to the last update timestamp (no matter which thing), **ALL** items from **ALL** things are updated
|
If you send a REFRESH command to the last update timestamp (no matter which thing), **ALL** items from **ALL** things are updated
|
||||||
|
|
||||||
```
|
```
|
||||||
DateTime LastUpdate "LastUpdate [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" { channel="gardena:water_control:home:myWateringComputer:common#lastUpdate_timestamp" }
|
DateTime LastUpdate "LastUpdate [%1$td.%1$tm.%1$tY %1$tH:%1$tM]" { channel="gardena:water_control:home:myWateringComputer:common#lastUpdate_timestamp" }
|
||||||
|
|
||||||
|
@ -126,8 +126,7 @@ public class Device {
|
|||||||
valveSet = (ValveSetServiceDataItem) dataItem;
|
valveSet = (ValveSetServiceDataItem) dataItem;
|
||||||
} else if (dataItem instanceof ValveServiceDataItem) {
|
} else if (dataItem instanceof ValveServiceDataItem) {
|
||||||
String valveNumber = StringUtils.substringAfterLast(dataItem.id, ":");
|
String valveNumber = StringUtils.substringAfterLast(dataItem.id, ":");
|
||||||
if (valveNumber != null
|
if ("".equals(valveNumber) || "wc".equals(valveNumber) || "0".equals(valveNumber)) {
|
||||||
&& (valveNumber.equals("") || valveNumber.equals("wc") || valveNumber.equals("0"))) {
|
|
||||||
valve = (ValveServiceDataItem) dataItem;
|
valve = (ValveServiceDataItem) dataItem;
|
||||||
} else if ("1".equals(valveNumber)) {
|
} else if ("1".equals(valveNumber)) {
|
||||||
valveOne = (ValveServiceDataItem) dataItem;
|
valveOne = (ValveServiceDataItem) dataItem;
|
||||||
|
Loading…
Reference in New Issue
Block a user