mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-12 03:43:04 +02:00
style: format sensor manager polling change
This commit is contained in:
@@ -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