Skip to content

Commit

Permalink
Fixed call to hass instance
Browse files Browse the repository at this point in the history
  • Loading branch information
PTST authored May 11, 2020
1 parent 31cb56f commit 70a192b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/o365/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def async_update(self):
return
event = calculate_offset(event, DEFAULT_OFFSET)
self._offset_reached = is_offset_reached(event)
events = list(await hass.async_add_executor_job(self.data.o365_get_events,
events = list(await self.hass.async_add_executor_job(self.data.o365_get_events,
datetime.now() + timedelta(hours=self.start_offset),
datetime.now() + timedelta(hours=self.end_offset),
)
Expand Down

0 comments on commit 70a192b

Please sign in to comment.