mirror of
https://github.com/home-assistant/core.git
synced 2025-05-21 06:17:06 +00:00

* Update docstrings * Update docstrings * Update docstrings * Update docstrings * update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update docstrings * Update tomato.py * Update isy994.py * Lint + fix tests * Lint
19 lines
493 B
Python
19 lines
493 B
Python
"""Provide configuration end points for Groups."""
|
|
import asyncio
|
|
|
|
from homeassistant.components.config import EditKeyBasedConfigView
|
|
from homeassistant.components.group import GROUP_SCHEMA
|
|
import homeassistant.helpers.config_validation as cv
|
|
|
|
|
|
CONFIG_PATH = 'groups.yaml'
|
|
|
|
|
|
@asyncio.coroutine
|
|
def async_setup(hass):
|
|
"""Set up the Group config API."""
|
|
hass.http.register_view(EditKeyBasedConfigView(
|
|
'group', 'config', CONFIG_PATH, cv.slug, GROUP_SCHEMA
|
|
))
|
|
return True
|