mirror of
https://github.com/home-assistant/core
synced 2024-09-03 08:14:07 +02:00
24 lines
608 B
Python
24 lines
608 B
Python
"""The zodiac component."""
|
|
import voluptuous as vol
|
|
|
|
from homeassistant.const import Platform
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.discovery import async_load_platform
|
|
from homeassistant.helpers.typing import ConfigType
|
|
|
|
from .const import DOMAIN
|
|
|
|
CONFIG_SCHEMA = vol.Schema(
|
|
{vol.Optional(DOMAIN): {}},
|
|
extra=vol.ALLOW_EXTRA,
|
|
)
|
|
|
|
|
|
async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|
"""Set up the zodiac component."""
|
|
hass.async_create_task(
|
|
async_load_platform(hass, Platform.SENSOR, DOMAIN, {}, config)
|
|
)
|
|
|
|
return True
|