mirror of
https://github.com/chliny/hass-tencentcloud-asr.git
synced 2026-07-29 16:13:55 +08:00
init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
DOMAIN = "tencentcloud_asr"
|
||||
|
||||
PLATFORMS = (Platform.STT,)
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry):
|
||||
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
|
||||
return True
|
||||
|
||||
|
||||
async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry):
|
||||
return await hass.config_entries.async_unload_platforms(config_entry, PLATFORMS)
|
||||
Reference in New Issue
Block a user