We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46b2a77 commit 19651e2Copy full SHA for 19651e2
app/apis/home_assistant_api.rb
@@ -44,8 +44,11 @@ def problems
44
end.compact
45
46
unavailable_entity_problems = data
47
- .select { _1[:state] == "unavailable" && Time.parse(_1[:last_updated].to_s) < 15.minutes.ago }
48
- .map do
+ .select {
+ _1[:state] == "unavailable" &&
49
+ Time.parse(_1[:last_updated].to_s) < 15.minutes.ago &&
50
+ !@config.dig("home_assistant", "allowed_unavailable").to_a.include?(_1[:entity_id])
51
+ }.map do
52
{
53
icon: "triangle-exclamation",
54
message: "#{_1[:entity_id].split(".").last.humanize} unavailable"
0 commit comments