Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for automation config panel (#7509)
* Add support for automation config * Build fromtend * Lint
- Loading branch information
Showing
16 changed files
with
144 additions
and
26 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Provide configuration end points for Z-Wave.""" | ||
import asyncio | ||
|
||
from homeassistant.components.config import EditIdBasedConfigView | ||
from homeassistant.components.automation import ( | ||
PLATFORM_SCHEMA, DOMAIN, async_reload) | ||
import homeassistant.helpers.config_validation as cv | ||
|
||
|
||
CONFIG_PATH = 'automations.yaml' | ||
|
||
|
||
@asyncio.coroutine | ||
def async_setup(hass): | ||
"""Set up the Automation config API.""" | ||
hass.http.register_view(EditIdBasedConfigView( | ||
DOMAIN, 'config', CONFIG_PATH, cv.string, | ||
PLATFORM_SCHEMA, post_write_hook=async_reload | ||
)) | ||
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file modified
BIN
-7 Bytes
(98%)
homeassistant/components/frontend/www_static/compatibility.js.gz
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
homeassistant/components/frontend/www_static/home-assistant-polymer
Submodule home-assistant-polymer
updated
from 9e7dc4 to ca82a4
2 changes: 2 additions & 0 deletions
2
homeassistant/components/frontend/www_static/panels/ha-panel-automation.html
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+39.6 KB
homeassistant/components/frontend/www_static/panels/ha-panel-automation.html.gz
Binary file not shown.
Oops, something went wrong.