From 3363844b110ef65fe3229b97c6e29c5cea5dde01 Mon Sep 17 00:00:00 2001 From: Steve Switzer Date: Mon, 10 Apr 2017 10:49:07 -0400 Subject: [PATCH] Update Venstar_Colortouch.pm 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. --- lib/Venstar_Colortouch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Venstar_Colortouch.pm b/lib/Venstar_Colortouch.pm index f1e125229..064664d54 100644 --- a/lib/Venstar_Colortouch.pm +++ b/lib/Venstar_Colortouch.pm @@ -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";