-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Florian Wartner
committed
May 28, 2024
1 parent
0a27c06
commit 547c6ab
Showing
6 changed files
with
79 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
import logging | ||
|
||
from homeassistant.config_entries import ConfigEntry | ||
from homeassistant.core import HomeAssistant | ||
from homeassistant.helpers.typing import ConfigType | ||
|
||
from .const import DOMAIN | ||
|
||
_LOGGER = logging.getLogger(__name__) | ||
|
||
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigType): | ||
"""Set up OpenWakeWord from a config entry.""" | ||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry): | ||
"""Set up WakeWord Installer from a config entry.""" | ||
hass.async_create_task( | ||
hass.config_entries.async_forward_entry_setup(config_entry, "sensor") | ||
hass.config_entries.async_forward_entry_setup(entry, "sensor") | ||
) | ||
return True | ||
|
||
async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigType): | ||
"""Unload a config entry.""" | ||
await hass.config_entries.async_forward_entry_unload(config_entry, "sensor") | ||
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry): | ||
"""Unload WakeWord Installer config entry.""" | ||
await hass.config_entries.async_forward_entry_unload(entry, "sensor") | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters