Skip to content

Commit

Permalink
Merge pull request #657 from tobser/raZberry_binary_sensor_custom_id
Browse files Browse the repository at this point in the history
raZberry binary sensor with custom ids
  • Loading branch information
hplato authored Jan 7, 2017
2 parents fcc90d9 + 2b0989d commit b20d548
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 @@ -1288,7 +1288,7 @@ sub new {
#push( @{ $$self{states} }, 'on', 'off'); I'm not sure we should set the states here, since it's not a controlable item?

$$self{master_object} = $object;
$devid = $devid . "-0-48-1";
$devid = $devid . "-0-48-1" unless ( $devid =~ m/-\d+-\d+/ );
$$self{type} = "Binary Sensor";
$$self{devid} = $devid;
$object->register( $self, $devid, $options );
Expand Down

0 comments on commit b20d548

Please sign in to comment.