Skip to content

Commit

Permalink
Don't display hidden/non-visible calendars on the Calendar panel (#18541
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dtbell91 authored Nov 6, 2023
1 parent 0cc3827 commit 589e3b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/calendar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ export const getCalendars = (hass: HomeAssistant): Calendar[] =>
.filter(
(eid) =>
computeDomain(eid) === "calendar" &&
!isUnavailableState(hass.states[eid].state)
!isUnavailableState(hass.states[eid].state) &&
hass.entities[eid]?.hidden !== true
)
.sort()
.map((eid, idx) => ({
Expand Down

0 comments on commit 589e3b6

Please sign in to comment.