From bb0521a98ffec35c6301b0778757f96e585dc463 Mon Sep 17 00:00:00 2001 From: Chris Jackson Date: Mon, 30 May 2022 16:08:28 +1200 Subject: [PATCH] Update to ZSmart Systems libraries 1.4.6 (#762) * Update to ZSmart Systems libraries 1.4.6 Signed-off-by: Chris Jackson * Fix test Signed-off-by: Chris Jackson --- .../console/internal/GeneralZigBeeConsoleCommandProvider.java | 4 +++- .../zigbee/converter/ZigBeeBaseChannelConverterTest.java | 1 + pom.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/org.openhab.binding.zigbee.console/src/main/java/org/openhab/binding/zigbee/console/internal/GeneralZigBeeConsoleCommandProvider.java b/org.openhab.binding.zigbee.console/src/main/java/org/openhab/binding/zigbee/console/internal/GeneralZigBeeConsoleCommandProvider.java index f1baa3928..5a75375dd 100644 --- a/org.openhab.binding.zigbee.console/src/main/java/org/openhab/binding/zigbee/console/internal/GeneralZigBeeConsoleCommandProvider.java +++ b/org.openhab.binding.zigbee.console/src/main/java/org/openhab/binding/zigbee/console/internal/GeneralZigBeeConsoleCommandProvider.java @@ -39,6 +39,7 @@ import com.zsmartsystems.zigbee.console.ZigBeeConsoleDeviceInformationCommand; import com.zsmartsystems.zigbee.console.ZigBeeConsoleFirmwareCommand; import com.zsmartsystems.zigbee.console.ZigBeeConsoleGroupCommand; +import com.zsmartsystems.zigbee.console.ZigBeeConsoleIdentifyCommand; import com.zsmartsystems.zigbee.console.ZigBeeConsoleInstallKeyCommand; import com.zsmartsystems.zigbee.console.ZigBeeConsoleLinkKeyCommand; import com.zsmartsystems.zigbee.console.ZigBeeConsoleNeighborsListCommand; @@ -78,7 +79,8 @@ public class GeneralZigBeeConsoleCommandProvider implements ZigBeeConsoleCommand new ZigBeeConsoleNodeListCommand(), new ZigBeeConsoleOtaUpgradeCommand(), new ZigBeeConsoleSceneCommand(), new ZigBeeConsoleReportingConfigCommand(), new ZigBeeConsoleReportingSubscribeCommand(), new ZigBeeConsoleReportingUnsubscribeCommand(), new ZigBeeConsoleRoutingTableCommand(), - new ZigBeeConsoleUnbindCommand(), new ZigBeeConsoleWindowCoveringCommand())); + new ZigBeeConsoleUnbindCommand(), new ZigBeeConsoleWindowCoveringCommand(), + new ZigBeeConsoleIdentifyCommand())); private Map generalCommands = GENERAL_COMMANDS.stream() .collect(toMap(ZigBeeConsoleCommand::getCommand, identity())); diff --git a/org.openhab.binding.zigbee/src/test/java/org/openhab/binding/zigbee/converter/ZigBeeBaseChannelConverterTest.java b/org.openhab.binding.zigbee/src/test/java/org/openhab/binding/zigbee/converter/ZigBeeBaseChannelConverterTest.java index 0883d1065..a6f134e4c 100644 --- a/org.openhab.binding.zigbee/src/test/java/org/openhab/binding/zigbee/converter/ZigBeeBaseChannelConverterTest.java +++ b/org.openhab.binding.zigbee/src/test/java/org/openhab/binding/zigbee/converter/ZigBeeBaseChannelConverterTest.java @@ -66,6 +66,7 @@ public void getDeviceTypeLabel() { ZigBeeBaseChannelConverter converter = new ZigBeeConverterSwitchLevel(); ZigBeeEndpoint endpoint = Mockito.mock(ZigBeeEndpoint.class); + Mockito.when(endpoint.getProfileId()).thenReturn(0x104); Mockito.when(endpoint.getDeviceId()).thenReturn(1); assertEquals("LEVEL_CONTROL_SWITCH", converter.getDeviceTypeLabel(endpoint)); diff --git a/pom.xml b/pom.xml index a15e56f57..606b5a4f9 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ false - 1.4.5 + 1.4.6 2.0.3 true 0.13.0