Skip to content

Commit

Permalink
Sourcery code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerSelwyn committed Nov 8, 2022
1 parent f3d5391 commit 1be5c9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/o365/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ async def async_o365_get_events(self, hass, start_date, end_date):
hass, self._schedule, start_date, end_date
)

if not self.calendar and not self._group_calendar:
if not self.calendar:
await self._async_get_calendar(hass)

return await self._async_calendar_schedule_get_events(
hass, self.calendar, start_date, end_date
)
Expand Down

0 comments on commit 1be5c9d

Please sign in to comment.