File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,6 @@ def call(
22
22
if home_assistant_api . healthy?
23
23
out [ :sonos_status ] = home_assistant_api . now_playing
24
24
25
- home_assistant_api . problems . each do |problem |
26
- out [ :status_icons_with_labels ] << [ problem [ :icon ] , problem [ :message ] ]
27
- end
28
-
29
25
home_assistant_api . unlocked_doors . each do |door_name |
30
26
out [ :status_icons_with_labels ] << [ "lock-open" , door_name ]
31
27
end
@@ -37,6 +33,10 @@ def call(
37
33
home_assistant_api . low_batteries . each do |low_battery |
38
34
out [ :status_icons_with_labels ] << [ "battery-quarter" , low_battery ]
39
35
end
36
+
37
+ home_assistant_api . problems . each do |problem |
38
+ out [ :status_icons_with_labels ] << [ problem [ :icon ] , problem [ :message ] ]
39
+ end
40
40
else
41
41
out [ :status_icons_with_labels ] << [ "triangle-exclamation" , "Home Assistant" ]
42
42
end
You can’t perform that action at this time.
0 commit comments