Skip to content

Commit

Permalink
Bump jomnilink (openhab#12444)
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <mrtops03@gmail.com>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
  • Loading branch information
ecdye authored and NickWaterton committed Apr 27, 2022
1 parent f71ca33 commit 6ae5509
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bundles/org.openhab.binding.omnilink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<dependency>
<groupId>com.github.digitaldan</groupId>
<artifactId>jomnilink</artifactId>
<version>1.4.2</version>
<version>1.4.3</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class OmnilinkBindingConstants {
public static final String CHANNEL_ROOM_SCENE_D = "scene_d";
public static final String CHANNEL_ROOM_STATE = "state";

public static final String CHANNEL_SYSTEMDATE = "system_date";
public static final String CHANNEL_SYSTEM_DATE = "system_date";
public static final String CHANNEL_EVENT_LOG = "last_log";

// buttons
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void handleCommand(ChannelUID channelUID, Command command) {
}

switch (channelUID.getId()) {
case CHANNEL_SYSTEMDATE:
case CHANNEL_SYSTEM_DATE:
if (command instanceof DateTimeType) {
ZonedDateTime zdt = ((DateTimeType) command).getZonedDateTime();
boolean inDaylightSavings = zdt.getZone().getRules().isDaylightSavings(zdt.toInstant());
Expand Down Expand Up @@ -492,7 +492,7 @@ private void getSystemStatus() throws IOException, OmniNotConnectedException, Om
.append(String.format("%02d", status.getHour())).append(":")
.append(String.format("%02d", status.getMinute())).append(":")
.append(String.format("%02d", status.getSecond())).toString();
updateState(CHANNEL_SYSTEMDATE, new DateTimeType(dateString));
updateState(CHANNEL_SYSTEM_DATE, new DateTimeType(dateString));
}

public Message reqObjectProperties(int objectType, int objectNum, int direction, int filter1, int filter2,
Expand Down

0 comments on commit 6ae5509

Please sign in to comment.