Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warning for no status instead of error.
Browse files Browse the repository at this point in the history
wtgee committed May 24, 2024
1 parent 6ef9b06 commit 2249206
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panoptes/pocs/sensor/power.py
Original file line number Diff line number Diff line change
@@ -174,6 +174,9 @@ def __init__(self,
@property
def status(self):
readings = self.readings
if not readings:
self.logger.info('No readings available. If the system just started, please wait a moment.')
return {}
status = {
r.name: dict(label=r.label, state=r.state.name, reading=readings[r.label])
for r in self.relays

0 comments on commit 2249206

Please sign in to comment.