Skip to content

Commit

Permalink
Update cloud_fix.py
Browse files Browse the repository at this point in the history
  • Loading branch information
azerty9971 committed Jan 27, 2025
1 parent 2c287bf commit 2ac9374
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,11 @@ def _align_valuedescr(device: XTDevice):
ls_value = json.loads(value_descr)
fix_dict = CloudFixes.compute_aligned_valuedescr(ls_value, sr_value, fn_value)
for fix_code in fix_dict:
if sr_value:
if sr_value is not None:
sr_value[fix_code] = fix_dict[fix_code]
if fn_value:
if fn_value is not None:
fn_value[fix_code] = fix_dict[fix_code]
if ls_value:
if ls_value is not None:
ls_value[fix_code] = fix_dict[fix_code]
if sr_value:
device.status_range[code].values = json.dumps(sr_value)
Expand Down

0 comments on commit 2ac9374

Please sign in to comment.