Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insteon: Fix Bug Which Converted Object Names to Lowercase #314

Merged
merged 1 commit into from
Nov 12, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/Insteon/BaseInsteon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@ sub link_to_interface
}
elsif ($step == 2){ #Add Link from PLM->object
$success_callback = $success_callback_prefix . "\"3\")";
my $link_info = "deviceid=" . lc $self->device_id . " group=$p_group is_controller=0 " .
my $link_info = "deviceid=" . lc ($self->device_id) . " group=$p_group is_controller=0 " .
"callback=$success_callback failure_callback=$failure_callback";
$self->interface->add_link($link_info);
}
Expand All @@ -1454,7 +1454,7 @@ sub link_to_interface
elsif ($step == 4){ #Add surrogate link on PLM if surrogate exists
$success_callback = $success_callback_prefix . "\"5\")";
my $surrogate_group = $$self{surrogate}->group;
my %link_info = ( deviceid=> lc $self->device_id,
my %link_info = ( deviceid=> lc($self->device_id),
group => $surrogate_group, is_controller => 1,
callback => "$success_callback",
failure_callback=> "$failure_callback",
Expand Down Expand Up @@ -1542,7 +1542,7 @@ sub unlink_to_interface
elsif ($step == 1) { #Delete link on the PLM
$success_callback = $success_callback_prefix . "'2')";
$self->interface->delete_link(
deviceid => lc $self->device_id,
deviceid => lc($self->device_id),
group=> $p_group, is_controller=>0,
callback=>$success_callback,
failure_callback=>$failure_callback);
Expand All @@ -1566,7 +1566,7 @@ sub unlink_to_interface
elsif ($step == 3){ #Delete surrogate link on PLM if surrogate exists
$success_callback = $success_callback_prefix . "'4')";
my $surrogate_group = $$self{surrogate}->group;
my %link_info = ( deviceid=> lc $self->device_id,
my %link_info = ( deviceid=> lc($self->device_id),
group => $surrogate_group, is_controller => 1,
callback => "$success_callback",
failure_callback=> "$failure_callback",
Expand Down