Skip to content

Commit 46b2a77

Browse files
committed
ignore unavailable image entities like robot vac maps
1 parent e96282e commit 46b2a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/apis/home_assistant_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def prepare_response(response)
1818
entity_ids.include?(_1["entity_id"]) ||
1919
_1.dig("attributes", "device_class") == "battery" ||
2020
_1["entity_id"].include?("sensor.timeframe") ||
21-
_1["state"] == "unavailable"
21+
_1["state"] == "unavailable" && !_1["entity_id"].include?("image.")
2222
end
2323
end
2424

0 commit comments

Comments
 (0)