mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
FB_CALLLIST: allow non-FB_CALLMONITOR devices when define a FB_CALLLIST (Forum: #41152)
git-svn-id: https://svn.fhem.de/fhem/trunk@9267 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7cf95409c8
commit
1bdd55b8d1
@ -77,20 +77,22 @@ sub FB_CALLLIST_Define($$)
|
|||||||
|
|
||||||
if(!defined($a[2]))
|
if(!defined($a[2]))
|
||||||
{
|
{
|
||||||
$retval = "FB_CALLLIST_define: you must specify a FB_CALLMONITOR object for using FB_CALLLIST";
|
return "FB_CALLLIST_define: you must specify a device name for using FB_CALLLIST";
|
||||||
return $retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(@a != 3)
|
if(@a != 3)
|
||||||
{
|
{
|
||||||
$retval = "wrong define syntax: define <name> FB_CALLLIST <FB_CALLMONITOR name>";
|
return "wrong define syntax: define <name> FB_CALLLIST <name>";
|
||||||
return $retval;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unless(defined($defs{$a[2]}) and $defs{$a[2]}->{TYPE} eq "FB_CALLMONITOR")
|
unless(defined($defs{$a[2]}))
|
||||||
{
|
{
|
||||||
$retval = "FB_CALLLIST_Define: $a[2] does not exists or ist not of type FB_CALLMONITOR";
|
return "FB_CALLLIST_define: the selected device ".$a[2]." does not exist.";
|
||||||
return $retval;
|
}
|
||||||
|
|
||||||
|
unless($defs{$a[2]}->{TYPE} eq "FB_CALLMONITOR")
|
||||||
|
{
|
||||||
|
Log3 $name, 3, "FB_CALLLIST ($name) - WARNING - selected device ".$a[2]." ist not of type FB_CALLMONITOR";
|
||||||
}
|
}
|
||||||
|
|
||||||
$hash->{FB} = $a[2];
|
$hash->{FB} = $a[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user