From 93bdc4d6dfe011c1fcd606acbaa91abc6d1ba4a5 Mon Sep 17 00:00:00 2001 From: Patrick Toft Steffensen <17211264+PTST@users.noreply.github.com> Date: Mon, 10 Feb 2020 13:12:18 +0100 Subject: [PATCH] Update calendar.py --- custom_components/o365/calendar.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/custom_components/o365/calendar.py b/custom_components/o365/calendar.py index 74f709e..9bff462 100644 --- a/custom_components/o365/calendar.py +++ b/custom_components/o365/calendar.py @@ -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, @@ -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, @@ -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) @@ -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: