mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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 = "";
|
||||
if ( RESIDENTStk_GetType($wakeupUserdevice) eq "RESIDENTS" ) {
|
||||
if ( RESIDENTStk_IsDevice( $wakeupUserdevice, "RESIDENTS" ) ) {
|
||||
$RESIDENTGROUPS = $wakeupUserdevice;
|
||||
}
|
||||
elsif ( RESIDENTStk_IsDevice($wakeupUserdevice)
|
||||
@ -1804,10 +1804,11 @@ sub RESIDENTStk_IsDevice($;$) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
sub RESIDENTStk_GetType($) {
|
||||
sub RESIDENTStk_GetType($;$) {
|
||||
my $devname = shift;
|
||||
my $default = shift;
|
||||
|
||||
return "" unless ( RESIDENTStk_IsDevice($devname) );
|
||||
return $default unless ( RESIDENTStk_IsDevice($devname) );
|
||||
return $defs{$devname}{TYPE};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user