Support reloading the rest notify platform (#39527)
* Support reloading the rest notify platform * update services.yaml * fix conflict
This commit is contained in:
1 parent
a778690b64
commit
661b593db3
6 files changed
+70
-2
No files matched your search
@@ -28,6 +28,9 @@ from homeassistant.const import (
|
||||
HTTP_OK,
|
||||
)
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.reload import setup_reload_service
|
||||
|
||||
from . import DOMAIN, PLATFORMS
|
||||
|
||||
CONF_DATA = "data"
|
||||
CONF_DATA_TEMPLATE = "data_template"
|
||||
@@ -67,6 +70,8 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
def get_service(hass, config, discovery_info=None):
|
||||
"""Get the RESTful notification service."""
|
||||
setup_reload_service(hass, DOMAIN, PLATFORMS)
|
||||
|
||||
resource = config.get(CONF_RESOURCE)
|
||||
method = config.get(CONF_METHOD)
|
||||
headers = config.get(CONF_HEADERS)
|
||||
|
||||
Reference in new issue
Block a user