mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Updates to properly clear errors when there are none and set message to "Room Ok."
This commit is contained in:
parent
5d7cdab933
commit
42c483f581
1 changed files with 23 additions and 19 deletions
|
|
@ -64,7 +64,7 @@ namespace PepperDash.Essentials.Core
|
|||
initialStatus = MonitorStatus.InWarning;
|
||||
prefix = "2:";
|
||||
}
|
||||
else if (InWarning.Count() > 0)
|
||||
else if (IsOk.Count() > 0)
|
||||
initialStatus = MonitorStatus.IsOk;
|
||||
else
|
||||
initialStatus = MonitorStatus.StatusUnknown;
|
||||
|
|
@ -88,6 +88,10 @@ namespace PepperDash.Essentials.Core
|
|||
}
|
||||
Message = sb.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
Message = "Room Ok.";
|
||||
}
|
||||
|
||||
// Want to fire even if status doesn't change because the message may.
|
||||
Status = initialStatus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue