Skip to content

Commit

Permalink
Multioltage Device Registration fix
Browse files Browse the repository at this point in the history
This fixes ZWave multivoltage device registration, so that specifying only the major device ID in the MHT file registers the various subdevices.
  • Loading branch information
jonwhitear committed Sep 4, 2018
1 parent be0cd3b commit 361e077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/raZberry.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ sub new {
#ZWayVDev_zway_x-0-50-5 - Current Sensor A
#push( @{ $$self{states} }, 'on', 'off'); I'm not sure we should set the states here, since it's not a controlable item?

unless ( $devid =~ m/^\d+$/ ) {
if ( $devid =~ m/^\d+$/ ) {
$$self{master_object} = $object;
$$self{type} = "Multilevel Voltage";
$$self{devid} = $devid;
Expand Down

0 comments on commit 361e077

Please sign in to comment.