Skip to content

Commit

Permalink
Update Venstar_Colortouch.pm
Browse files Browse the repository at this point in the history
If there's an error gathering data, then $self->{data}->{name} will not be defined:
Use of uninitialized value in concatenation (.) or string at /opt/misterhouse/fork_pmantis/bin/../lib/Venstar_Colortouch.pm line 398.
  • Loading branch information
pmatis authored Apr 10, 2017
1 parent d54265e commit 3363844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Venstar_Colortouch.pm
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ sub _get_JSON_data {
my $isSuccessResponse = $responseCode < 400;
$self->{updating} = 0;
if ( !$isSuccessResponse ) {
main::print_log( "[Venstar Colortouch:" . $self->{data}->{name} . "] Warning, failed to get data. Response code $responseCode" );
main::print_log( "[Venstar Colortouch: (" . $self->{host} . ")] Warning, failed to get data. Response code $responseCode" );
print "Venstar. status=" . $self->{status};
if ( defined $self->{child_object}->{comm} ) {
print " Tracker defined\n";
Expand Down

0 comments on commit 3363844

Please sign in to comment.