This commit is contained in:
Sebastian
2022-06-28 23:08:35 +02:00
parent ee0c7fa4ba
commit 7cefd1c7e3
3 changed files with 3 additions and 4 deletions

View File

@ -652,8 +652,7 @@ sub WriteReadings {
$hash,
$decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name},
($propertie->{value} eq '') ? CommandAttr( undef, $name . ' '. $decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name}) : RigReadingsValue( $hash, $propertie->{value} )
($propertie->{value} eq '') ? undef : RigReadingsValue( $hash, $propertie->{value} )
)
if ( exists( $propertie->{value} ) # defined ignored 'value':null
&& $decode_json->{abilities}[$abilities]{name} . '-'