mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Add async_setup_entry to calendar platform (#42075)
This commit is contained in:
parent
0674ae6205
commit
abeff01626
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user