mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-07 22:29:19 +00:00
76_SolarForecast.pm: contrib 0.10.0
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@23954 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
69f1525d08
commit
c7ff520789
@ -1236,9 +1236,11 @@ sub writeCacheToFile {
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
my $type = $hash->{TYPE};
|
my $type = $hash->{TYPE};
|
||||||
|
|
||||||
|
return if(!$data{$type}{$name}{$cachename});
|
||||||
|
|
||||||
my @pvh;
|
my @pvh;
|
||||||
|
|
||||||
my $json = encode_json ($data{$type}{$name}{$cachename});
|
my $json = encode_json $data{$type}{$name}{$cachename};
|
||||||
push @pvh, $json;
|
push @pvh, $json;
|
||||||
|
|
||||||
my $error = FileWrite($file, @pvh);
|
my $error = FileWrite($file, @pvh);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user