mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
PHTV: add prototype
git-svn-id: https://svn.fhem.de/fhem/trunk@14079 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fcd6459451
commit
e8820caa26
@ -116,6 +116,8 @@ sub PHTV_Undefine($$) {
|
||||
return;
|
||||
}
|
||||
|
||||
sub PHTV_Set($@);
|
||||
|
||||
sub PHTV_Set($@) {
|
||||
my ( $hash, @a ) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
@ -1310,8 +1312,9 @@ sub PHTV_Notify($$) {
|
||||
next unless ( defined($event) );
|
||||
|
||||
# initialize
|
||||
if ( $event =~ /^(INITIALIZED|MODIFIED)(\s(.*))?$/ ) {
|
||||
PHTV_GetStatus($hash);
|
||||
if ( $event =~ /^(INITIALIZED|MODIFIED)(?:\s+(.+))?$/ ) {
|
||||
PHTV_GetStatus($hash)
|
||||
if ( $1 eq "INITIALIZED" || $2 && $2 eq $name );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user