Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Commit

Permalink
Update calendar.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PTST authored Feb 10, 2020
1 parent cd30ce3 commit 93bdc4d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions custom_components/o365/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import copy
from operator import attrgetter, itemgetter
from datetime import timedelta, datetime
from homeassistant.helpers.entity import generate_entity_id
from homeassistant.util import Throttle, dt
from homeassistant.components.calendar import (
CalendarEventDevice,
Expand All @@ -20,7 +19,6 @@
CALENDAR_SERVICE_MODIFY_SCHEMA,
CALENDAR_SERVICE_REMOVE_SCHEMA,
CALENDAR_SERVICE_RESPOND_SCHEMA,
CALENDAR_ENTITY_ID_FORMAT,
MIN_TIME_BETWEEN_UPDATES,
OFFSET,
DOMAIN,
Expand Down Expand Up @@ -52,9 +50,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
cal = O365CalendarEventDevice(
account, name, calendar_name, hours_backward, hours_forward,
)
cal.entity_id = generate_entity_id(
CALENDAR_ENTITY_ID_FORMAT, cal.data.calendar.name, hass=hass
)
devices.append(cal)
add_devices(devices, True)
calendar_services = CalendarServices(account)
Expand All @@ -78,7 +73,6 @@ def __init__(self, account, name, calendar_name, start_offset, end_offset):
self.data = O365CalendarData(account, calendar_name)
self.start_offset = start_offset
self.end_offset = end_offset
self.entity_id = None
self._event = None
self._name = name
if self._name is None:
Expand Down

0 comments on commit 93bdc4d

Please sign in to comment.