mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Removed empty StateFn functions
git-svn-id: https://svn.fhem.de/fhem/trunk@1721 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3fa467082e
commit
b5069f2f92
@ -88,7 +88,6 @@ CUL_Initialize($)
|
||||
$hash->{UndefFn} = "CUL_Undef";
|
||||
$hash->{GetFn} = "CUL_Get";
|
||||
$hash->{SetFn} = "CUL_Set";
|
||||
$hash->{StateFn} = "CUL_SetState";
|
||||
$hash->{AttrFn} = "CUL_Attr";
|
||||
$hash->{AttrList}= "do_not_notify:1,0 dummy:1,0 " .
|
||||
"showtime:1,0 model:CUL,CUN,CUR loglevel:0,1,2,3,4,5,6 " .
|
||||
@ -470,14 +469,6 @@ READEND:
|
||||
return "$a[0] $a[1] => $msg";
|
||||
}
|
||||
|
||||
#####################################
|
||||
sub
|
||||
CUL_SetState($$$$)
|
||||
{
|
||||
my ($hash, $tim, $vt, $val) = @_;
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub
|
||||
CUL_Clear($)
|
||||
{
|
||||
|
@ -103,7 +103,6 @@ FHZ_Initialize($)
|
||||
$hash->{UndefFn} = "FHZ_Undef";
|
||||
$hash->{GetFn} = "FHZ_Get";
|
||||
$hash->{SetFn} = "FHZ_Set";
|
||||
$hash->{StateFn} = "FHZ_SetState";
|
||||
$hash->{AttrList}= "do_not_notify:1,0 dummy:1,0 " .
|
||||
"showtime:1,0 model:fhz1000,fhz1300 loglevel:0,1,2,3,4,5,6 ".
|
||||
"fhtsoftbuffer:1,0 addvaltrigger";
|
||||
@ -257,17 +256,6 @@ FHZ_Get($@)
|
||||
return "$a[0] $a[1] => $v";
|
||||
}
|
||||
|
||||
#####################################
|
||||
sub
|
||||
FHZ_SetState($$$$)
|
||||
{
|
||||
my ($hash, $tim, $vt, $val) = @_;
|
||||
|
||||
return "Undefined value $vt" if(!defined($gets{$vt}));
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
#####################################
|
||||
sub
|
||||
FHZ_DoInit($$$)
|
||||
|
@ -122,7 +122,6 @@ FS20_Initialize($)
|
||||
|
||||
$hash->{Match} = "^81..(04|0c)..0101a001";
|
||||
$hash->{SetFn} = "FS20_Set";
|
||||
$hash->{StateFn} = "FS20_SetState";
|
||||
$hash->{DefFn} = "FS20_Define";
|
||||
$hash->{UndefFn} = "FS20_Undef";
|
||||
$hash->{ParseFn} = "FS20_Parse";
|
||||
@ -133,20 +132,6 @@ FS20_Initialize($)
|
||||
"model:".join(",", sort keys %models);
|
||||
}
|
||||
|
||||
#####################################
|
||||
sub
|
||||
FS20_SetState($$$$)
|
||||
{
|
||||
my ($hash, $tim, $vt, $val) = @_;
|
||||
|
||||
$val = $1 if($val =~ m/^(.*) \d+$/);
|
||||
my $name = $hash->{NAME};
|
||||
(undef, $val) = ReplaceEventMap($name, [$name, $val], 0)
|
||||
if($attr{$name}{eventMap});
|
||||
return "setstate $name: undefined value $val" if(!defined($fs20_c2b{$val}));
|
||||
return undef;
|
||||
}
|
||||
|
||||
#############################
|
||||
sub
|
||||
Do_On_Till($@)
|
||||
|
Loading…
Reference in New Issue
Block a user