Skip to content

Commit 4d471c1

Browse files
committed
hide events with empty titles
1 parent 7287cab commit 4d471c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/apis/home_assistant_calendar_api.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def fetch
1515
res = HTTParty.get("#{url}/#{calendar["entity_id"]}?start=#{start_time}&end=#{end_time}", headers: headers)
1616

1717
res.map! do |event|
18+
next unless event["summary"].present?
19+
1820
event["calendar_entity_id"] = calendar["entity_id"]
1921
event["calendar_name"] = calendar["name"]
2022

0 commit comments

Comments
 (0)