i trust that ts works

This commit is contained in:
lda
2026-04-30 14:15:14 +07:00 Verified
parent b20f53c6ba
commit f16c076d96
10 changed files with 414 additions and 239 deletions
+1 -3
View File
@@ -174,9 +174,7 @@ impl Device {
fn observation_presence(observation: &DeviceObservationFact) -> Presence {
match (observation.kind.as_str(), observation.action.as_str()) {
(_, "remove" | "failed") => Presence::Offline,
(_, "permanent" | "reachable") => Presence::Online,
(_, "stale") => Presence::LikelyOnline,
(_, "remove") => Presence::Offline,
("neigh", "add" | "update" | "old") => Presence::LikelyOnline,
_ => Presence::Unknown,
}