mirror of
https://github.com/home-assistant/core.git
synced 2025-05-29 10:17:08 +00:00

* add zodiac sign integration * add tests & refacto * Apply suggestions from code review Co-authored-by: Chris Talkington <chris@talkingtontech.com> * fix indentation from suggested correction, fix quality scale and remove useless functions * fix code formatting * Create const.py * Update sensor.py * Update const.py * Update test_sensor.py * Update test_sensor.py * Update test_sensor.py * Update test_sensor.py * Update test_sensor.py * Update sensor.py * Update test_sensor.py * Update __init__.py * Update sensor.py * Update test_sensor.py * Update sensor.py * Update __init__.py * Update test_sensor.py * Update __init__.py * Fix zodiac time patch * Delete sensor.fr.json * Update sensor.py * Delete sensor.en.json * Update test_sensor.py * Apply suggestions from code review Co-authored-by: Chris Talkington <chris@talkingtontech.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
20 lines
480 B
Python
20 lines
480 B
Python
"""The zodiac component."""
|
|
import voluptuous as vol
|
|
|
|
from homeassistant.core import HomeAssistant
|
|
from homeassistant.helpers.discovery import async_load_platform
|
|
|
|
from .const import DOMAIN
|
|
|
|
CONFIG_SCHEMA = vol.Schema(
|
|
{vol.Optional(DOMAIN): {}},
|
|
extra=vol.ALLOW_EXTRA,
|
|
)
|
|
|
|
|
|
async def async_setup(hass: HomeAssistant, config: dict):
|
|
"""Set up the zodiac component."""
|
|
hass.async_create_task(async_load_platform(hass, "sensor", DOMAIN, {}, config))
|
|
|
|
return True
|