Add async_setup_entry to calendar platform (#42075)

This commit is contained in:
Olen 2020-10-21 13:20:34 +02:00 committed by GitHub
parent 0674ae6205
commit abeff01626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,16 @@ async def async_setup(hass, config):
return True return True
async def async_setup_entry(hass, entry):
"""Set up a config entry."""
return await hass.data[DOMAIN].async_setup_entry(entry)
async def async_unload_entry(hass, entry):
"""Unload a config entry."""
return await hass.data[DOMAIN].async_unload_entry(entry)
def get_date(date): def get_date(date):
"""Get the dateTime from date or dateTime as a local.""" """Get the dateTime from date or dateTime as a local."""
if "date" in date: if "date" in date: