Skip to content

Commit 5402be5

Browse files
committed
list home assistant problems last
1 parent 4dd9bf0 commit 5402be5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/models/display_content.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ def call(
2222
if home_assistant_api.healthy?
2323
out[:sonos_status] = home_assistant_api.now_playing
2424

25-
home_assistant_api.problems.each do |problem|
26-
out[:status_icons_with_labels] << [problem[:icon], problem[:message]]
27-
end
28-
2925
home_assistant_api.unlocked_doors.each do |door_name|
3026
out[:status_icons_with_labels] << ["lock-open", door_name]
3127
end
@@ -37,6 +33,10 @@ def call(
3733
home_assistant_api.low_batteries.each do |low_battery|
3834
out[:status_icons_with_labels] << ["battery-quarter", low_battery]
3935
end
36+
37+
home_assistant_api.problems.each do |problem|
38+
out[:status_icons_with_labels] << [problem[:icon], problem[:message]]
39+
end
4040
else
4141
out[:status_icons_with_labels] << ["triangle-exclamation", "Home Assistant"]
4242
end

0 commit comments

Comments
 (0)