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

Commit

Permalink
Fix entity id, again
Browse files Browse the repository at this point in the history
  • Loading branch information
PTST committed Feb 17, 2020
1 parent f1e2e30 commit ac9d575
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion custom_components/o365/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
CONF_TRACK,
CONF_NAME,
CONF_DEVICE_ID,
CALENDAR_ENTITY_ID_FORMAT,
)
from O365.calendar import Attendee
from homeassistant.util import dt
Expand Down Expand Up @@ -196,7 +197,9 @@ def get_calendar_info(hass, calendar, track_new_devices):
{
CONF_TRACK: track_new_devices,
CONF_NAME: calendar.name,
CONF_DEVICE_ID: generate_entity_id("{}", calendar.name, hass=hass),
CONF_DEVICE_ID: generate_entity_id(
CALENDAR_ENTITY_ID_FORMAT, calendar.name, hass=hass
),
}
],
}
Expand Down

0 comments on commit ac9d575

Please sign in to comment.