mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
57_SSCal: contrib 1.6.0
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@21107 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0d6a1da4a8
commit
582a2f9666
@ -2205,7 +2205,7 @@ sub SSCal_writeValuesToArray ($$$$$$$$$$$) {
|
||||
|
||||
foreach my $p (keys %{$vh}) {
|
||||
$vh->{$p} = "" if(!defined $vh->{$p});
|
||||
$vh->{$p} = SSCal_jboolmap($vh->{$p});
|
||||
$vh->{$p} = SSCal_jboolmap($vh->{$p});
|
||||
next if($vh->{$p} eq "");
|
||||
|
||||
# Log3($name, 4, "$name - bts: $bts, Parameter: $p, Value: ".$vh->{$p}) if(ref $p ne "HASH");
|
||||
@ -3158,7 +3158,9 @@ sub SSCal_jboolmap($){
|
||||
my ($bool)= @_;
|
||||
|
||||
if(JSON::is_bool($bool)) {
|
||||
$bool = $bool?1:0;
|
||||
my $b = JSON::boolean($bool);
|
||||
$bool = 1 if($b == $JSON::true);
|
||||
$bool = 0 if($b == $JSON::false);
|
||||
}
|
||||
|
||||
return $bool;
|
||||
|
Loading…
x
Reference in New Issue
Block a user