[test] set empty
This commit is contained in:
@ -652,7 +652,8 @@ sub WriteReadings {
|
||||
$hash,
|
||||
$decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name},
|
||||
($propertie->{value} eq '') ? 'N/A' : RigReadingsValue( $hash, $propertie->{value} )
|
||||
($propertie->{value} eq '') ? CommandAttr( undef, $name . ' '. $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name}) : RigReadingsValue( $hash, $propertie->{value} )
|
||||
)
|
||||
if ( exists( $propertie->{value} ) # defined ignored 'value':null
|
||||
&& $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
|
Reference in New Issue
Block a user