Skip to content

Commit

Permalink
Update to ZSmart Systems libraries 1.4.6 (#762)
Browse files Browse the repository at this point in the history
* Update to ZSmart Systems libraries 1.4.6

Signed-off-by: Chris Jackson <[email protected]>

* Fix test

Signed-off-by: Chris Jackson <[email protected]>
  • Loading branch information
cdjackson authored May 30, 2022
1 parent 1f1b961 commit bb0521a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<String, ZigBeeConsoleCommand> generalCommands = GENERAL_COMMANDS.stream()
.collect(toMap(ZigBeeConsoleCommand::getCommand, identity()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<properties>
<report.fail.on.error>false</report.fail.on.error>
<zsmartsystems.version>1.4.5</zsmartsystems.version>
<zsmartsystems.version>1.4.6</zsmartsystems.version>
<spotless.version>2.0.3</spotless.version>
<spotless.check.skip>true</spotless.check.skip> <!-- Spotless disabled for now -->
<sat.version>0.13.0</sat.version>
Expand Down

0 comments on commit bb0521a

Please sign in to comment.