mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
RESIDENTStk: fix parameters for GetType
git-svn-id: https://svn.fhem.de/fhem/trunk@13871 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
38dafd4f93
commit
a12f907ff5
@ -490,7 +490,7 @@ return;;\
|
|||||||
#
|
#
|
||||||
|
|
||||||
my $RESIDENTGROUPS = "";
|
my $RESIDENTGROUPS = "";
|
||||||
if ( RESIDENTStk_GetType($wakeupUserdevice) eq "RESIDENTS" ) {
|
if ( RESIDENTStk_IsDevice( $wakeupUserdevice, "RESIDENTS" ) ) {
|
||||||
$RESIDENTGROUPS = $wakeupUserdevice;
|
$RESIDENTGROUPS = $wakeupUserdevice;
|
||||||
}
|
}
|
||||||
elsif ( RESIDENTStk_IsDevice($wakeupUserdevice)
|
elsif ( RESIDENTStk_IsDevice($wakeupUserdevice)
|
||||||
@ -1804,10 +1804,11 @@ sub RESIDENTStk_IsDevice($;$) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub RESIDENTStk_GetType($) {
|
sub RESIDENTStk_GetType($;$) {
|
||||||
my $devname = shift;
|
my $devname = shift;
|
||||||
|
my $default = shift;
|
||||||
|
|
||||||
return "" unless ( RESIDENTStk_IsDevice($devname) );
|
return $default unless ( RESIDENTStk_IsDevice($devname) );
|
||||||
return $defs{$devname}{TYPE};
|
return $defs{$devname}{TYPE};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user