feat: Updates tracking state of sensors
This commit is contained in:
@@ -84,12 +84,11 @@ public struct TemperatureAndHumiditySensor: Identifiable, Sendable {
|
||||
/// Check whether any of the sensor values have changed and need processed.
|
||||
///
|
||||
/// - Note: Setting a value will set to both the temperature and humidity properties.
|
||||
public var needsProcessed: Bool {
|
||||
get { $temperature.needsProcessed || $humidity.needsProcessed }
|
||||
set {
|
||||
$temperature.needsProcessed = newValue
|
||||
$humidity.needsProcessed = newValue
|
||||
}
|
||||
public var needsProcessed: Bool { $temperature.needsProcessed || $humidity.needsProcessed }
|
||||
|
||||
public mutating func setHasProcessed() {
|
||||
$temperature.setHasProcessed()
|
||||
$humidity.setHasProcessed()
|
||||
}
|
||||
|
||||
/// Represents the different locations of a temperature and humidity sensor, which can
|
||||
|
||||
Reference in New Issue
Block a user