Skip to content

Commit

Permalink
Update additional Sensor property getters with Optional returns.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboulware committed Mar 22, 2024
1 parent ef0c7f7 commit 2004a0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scos_actions/hardware/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def gps(self, gps: GPSInterface):
self._gps = gps

@property
def preselector(self) -> Preselector:
def preselector(self) -> Optional[Preselector]:
"""
RF front end that may include calibration sources, filters, and/or amplifiers.
"""
Expand All @@ -104,7 +104,7 @@ def switches(self, switches: Dict[str, WebRelay]):
self._switches = switches

@property
def location(self) -> dict:
def location(self) -> Optional[dict]:
"""
The GeoJSON dictionary of the sensor's location.
"""
Expand All @@ -118,7 +118,7 @@ def location(self, loc: dict):
self._location = loc

@property
def capabilities(self) -> dict:
def capabilities(self) -> Optional[dict]:
"""
A dictionary of the sensor's capabilities. The dictionary should
include a 'sensor' key that maps to the ntia-sensor
Expand Down

0 comments on commit 2004a0f

Please sign in to comment.