Skip to content

Commit

Permalink
Fixing HomeAssistantType from @dcmeglio
Browse files Browse the repository at this point in the history
  • Loading branch information
skweeker committed Jan 4, 2025
1 parent 1028132 commit 4e9e391
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/calendarific/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import voluptuous as vol

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant

from homeassistant import config_entries
Expand Down Expand Up @@ -54,14 +55,12 @@ def setup(hass, config):


async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, "sensor")
)
await hass.config_entries.async_forward_entry_setups(entry, [Platform.SENSOR])
return True

async def async_unload_entry(hass, entry):
"""Unload a config entry."""
return await hass.config_entries.async_forward_entry_unload(entry, "sensor")
return await hass.config_entries.async_forward_entry_unload(entry, Platform.SENSOR)

class CalendarificApiReader:

Expand Down

0 comments on commit 4e9e391

Please sign in to comment.