Skip to content

Commit

Permalink
get sensor cal from sensor instead of sigan
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanielloNTIA committed Mar 6, 2024
1 parent bc5969c commit b5bb922
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/status/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,11 @@ def status(request, version, format=None):
}
if (
sensor_loader.sensor is not None
and sensor_loader.sensor.signal_analyzer is not None
and sensor_loader.sensor.signal_analyzer.sensor_calibration is not None
and sensor_loader.sensor.sensor_calibration is not None
):
status_json[
"last_calibration_datetime"
] = (
sensor_loader.sensor.signal_analyzer.sensor_calibration.last_calibration_datetime
)
] = sensor_loader.sensor.sensor_calibration.last_calibration_datetime
for component in status_monitor.status_components:
component_status = component.get_status()
if isinstance(component, WebRelay):
Expand Down

0 comments on commit b5bb922

Please sign in to comment.