Skip to content

Commit

Permalink
Add sensor.lastchange
Browse files Browse the repository at this point in the history
  • Loading branch information
koarlchen committed Jan 5, 2025
1 parent bce8b14 commit 4fb6cd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sensors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub struct SensorMetadata {
pub location: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub lastchange: Option<u64>,
}

/// Common information describing any sensor which requires a specified location.
Expand Down

0 comments on commit 4fb6cd3

Please sign in to comment.