mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
49_SSCam: contrib 9.5.0
git-svn-id: https://svn.fhem.de/fhem/trunk@22445 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8bffb3fc65
commit
642515b665
@ -221,7 +221,7 @@ sub Define {
|
||||
setVersionInfo($hash);
|
||||
|
||||
my @r;
|
||||
push @r, "adoptSubset:--reset--"; # Init für FTUI Subset wenn benutzt (Attr adoptSubset)
|
||||
push @r, "adoptSubset:--reset--" if(IsModelMaster($hash)); # Init für FTUI Subset wenn benutzt (Attr adoptSubset)
|
||||
push @r, "parentState:initialized"; # Init für "parentState" Forum: https://forum.fhem.de/index.php/topic,45671.msg985136.html#msg985136
|
||||
push @r, "state:initialized"; # Init für "state"
|
||||
push @r, "parentCam:initialized"; # Init für Elternkamera
|
||||
@ -693,13 +693,11 @@ sub delReadings {
|
||||
my $bl = "state|parentState|adoptSubset"; # Blacklist
|
||||
|
||||
if($rd) { # angegebenes Reading löschen wenn nicht im providerLevel enthalten
|
||||
# delete($hash->{READINGS}{$rd}) if($rd !~ /$bl/x);
|
||||
readingsDelete($hash, $rd) if($rd !~ /$bl/x);
|
||||
return;
|
||||
}
|
||||
|
||||
for my $key (keys %{$hash->{READINGS}}) {
|
||||
# delete($hash->{READINGS}{$key}) if($key !~ /$bl/x);
|
||||
readingsDelete($hash, $key) if($key !~ /$bl/x);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user