Skip to content

Update Any_Z_Wave_Dimmer_Driver_v1_5_5_425.groovy with try catch for createInputControls#1

Open
jamesmnixon wants to merge 1 commit intojvmahon:mainfrom
jamesmnixon:patch-1
Open

Update Any_Z_Wave_Dimmer_Driver_v1_5_5_425.groovy with try catch for createInputControls#1
jamesmnixon wants to merge 1 commit intojvmahon:mainfrom
jamesmnixon:patch-1

Conversation

@jamesmnixon
Copy link

There are some values that return as an empty string. instead of bool 0 or 1 for whether a device is read_only or not.

When this happens it causes a NumberFormatException error. This try catch handles that and defaults to not read-only and allows the scanning and input creation to proceed.

There are some values that return as an empty string. instead of bool 0 or 1 for whether a device is read_only or not. 

When this happens it causes a `NumberFormatException` error. This try catch handles that and defaults to not read-only and allows the scanning and input creation to proceed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant