Add a Zoneminder availability sensor (#20184)

* Embed zoneminder platforms into component

* Add a binary sensor for ZoneMinder availability

* Lint

* Add missing docstrings
This commit is contained in:
Rohan Kapoor authored and Paulus Schoutsen committed 2019-01-17 10:52:53 -08:00
1 parent 0fe5d567a2
commit 5232df34cb
2 files changed
+55

No files matched your search

@@ -12,6 +12,7 @@ import homeassistant.helpers.config_validation as cv
from homeassistant.const import (
CONF_HOST, CONF_PASSWORD, CONF_PATH, CONF_SSL, CONF_USERNAME,
CONF_VERIFY_SSL, ATTR_NAME, ATTR_ID)
from homeassistant.helpers.discovery import async_load_platform
_LOGGER = logging.getLogger(__name__)
@@ -93,4 +94,8 @@ def setup(hass, config):
schema=SET_RUN_STATE_SCHEMA
)
hass.async_create_task(
async_load_platform(hass, 'binary_sensor', DOMAIN, {}, config)
)
return success