Skip to content

Commit

Permalink
Merge pull request #45 from Smart-Home-Guard/fix/idle-is-treat-as-saf…
Browse files Browse the repository at this point in the history
…e-for-room-status

feat(home): treat idle as safe for synthetic room status
  • Loading branch information
quannhg authored May 22, 2024
2 parents a506216 + 0f51b3f commit 81486a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ function RoomStatusSection({
const roomData = rooms.map((room) => ({
...room,
isSafe: room.components.every(
(component) => component.status === MetricStatus.safe
(component) =>
component.status === MetricStatus.safe ||
component.status === MetricStatus.idle
),
}));

Expand Down

0 comments on commit 81486a1

Please sign in to comment.