feat: moved all modules to the new way of reader mode with a small refactoring

This commit is contained in:
Serhiy Mytrovtsiy
2024-02-10 17:03:47 +01:00
parent 1e9073424b
commit 7e833176d9
30 changed files with 222 additions and 320 deletions

View File

@@ -25,9 +25,9 @@ internal class SensorsReader: Reader<Sensors_List> {
}
private var unknownSensorsState: Bool
init() {
init(callback: @escaping (T?) -> Void = {_ in }) {
self.unknownSensorsState = Store.shared.bool(key: "Sensors_unknown", defaultValue: false)
super.init(.sensors)
super.init(.sensors, callback: callback)
self.list.sensors = self.sensors()
}