mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-10-31 04:01:59 +01:00
style: format sensor manager polling change
This commit is contained in:
1 parent
1c186d7feb
commit
5aebb4dd24
1 file changed
+3
-1
@@ -170,7 +170,9 @@ class SensorManager:
|
||||
next_due_in = min(next_due_in, max(0.0, next_read_at[name] - now))
|
||||
|
||||
if updated:
|
||||
readings = [latest_by_name[s.name] for s in self.sensors if s.name in latest_by_name]
|
||||
readings = [
|
||||
latest_by_name[s.name] for s in self.sensors if s.name in latest_by_name
|
||||
]
|
||||
with self._readings_lock:
|
||||
self._latest_readings = readings
|
||||
except Exception as exc:
|
||||
|
||||
Reference in new issue
Block a user