mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
FB_CALLLIST: fix warnings during startup if no mapping is used
git-svn-id: https://svn.fhem.de/fhem/trunk@15810 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
acd5046e99
commit
1cdb230a54
@ -309,7 +309,7 @@ sub FB_CALLLIST_Notify($$)
|
|||||||
|
|
||||||
if(grep(m/^(?:ATTR $name external-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
if(grep(m/^(?:ATTR $name external-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
||||||
{
|
{
|
||||||
my $value = AttrVal($name,"external-mapping",undef);
|
my $value = AttrVal($name,"external-mapping","");
|
||||||
my $table = eval($value);
|
my $table = eval($value);
|
||||||
|
|
||||||
if($table and ref($table) eq 'HASH')
|
if($table and ref($table) eq 'HASH')
|
||||||
@ -321,7 +321,7 @@ sub FB_CALLLIST_Notify($$)
|
|||||||
|
|
||||||
if(grep(m/^(?:ATTR $name connection-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
if(grep(m/^(?:ATTR $name connection-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
||||||
{
|
{
|
||||||
my $value = AttrVal($name,"connection-mapping",undef);
|
my $value = AttrVal($name,"connection-mapping","");
|
||||||
my $table = eval($value);
|
my $table = eval($value);
|
||||||
|
|
||||||
if($table and ref($table) eq 'HASH')
|
if($table and ref($table) eq 'HASH')
|
||||||
@ -333,9 +333,9 @@ sub FB_CALLLIST_Notify($$)
|
|||||||
|
|
||||||
if(grep(m/^(?:ATTR $name icon-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
if(grep(m/^(?:ATTR $name icon-mapping .*|INITIALIZED|REREADCFG)$/, @{$events}))
|
||||||
{
|
{
|
||||||
my $value = AttrVal($name,"icon-mapping",undef);
|
my $value = AttrVal($name,"icon-mapping","");
|
||||||
|
|
||||||
$value =~ s/"([^"]+?)"/'$1'/g if(defined($value)); # workaround for array variable interpretation
|
$value =~ s/"([^"]+?)"/'$1'/g; # workaround for array variable interpretation
|
||||||
|
|
||||||
my $table = eval($value);
|
my $table = eval($value);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user