Skip to content

Commit

Permalink
Unique id for calendars
Browse files Browse the repository at this point in the history
  • Loading branch information
Miicroo committed Jun 11, 2024
1 parent dd0bd9a commit afea597
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/swedish_calendar/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ def __init__(self, sensor_configs: list[SensorConfig], coordinator: CalendarData
self._attr_name = DOMAIN_FRIENDLY_NAME
self._events: list[SwedishCalendarEvent] = []

@property
def unique_id(self) -> str:
"""Return a unique ID."""
return f'calendar.{DOMAIN}'

@property
def should_poll(self):
return False
Expand Down

0 comments on commit afea597

Please sign in to comment.