python_openzwave update config service (#12060)
* update python-openzwave to 4.1.0 * add service which updates the configuration files from github * 0.4.3
This commit is contained in:
1 parent
b66be59598
commit
351e8921fa
3 files changed
+11
No files matched your search
@@ -359,6 +359,11 @@ def setup(hass, config):
|
||||
_LOGGER.info("Z-Wave soft_reset have been initialized")
|
||||
network.controller.soft_reset()
|
||||
|
||||
def update_config(service):
|
||||
"""Update the config from git."""
|
||||
_LOGGER.info("Configuration update has been initialized")
|
||||
network.controller.update_ozw_config()
|
||||
|
||||
def test_network(service):
|
||||
"""Test the network by sending commands to all the nodes."""
|
||||
_LOGGER.info("Z-Wave test_network have been initialized")
|
||||
@@ -616,6 +621,8 @@ def setup(hass, config):
|
||||
hass.services.register(DOMAIN, const.SERVICE_HEAL_NETWORK,
|
||||
heal_network)
|
||||
hass.services.register(DOMAIN, const.SERVICE_SOFT_RESET, soft_reset)
|
||||
hass.services.register(DOMAIN, const.SERVICE_UPDATE_CONFIG,
|
||||
update_config)
|
||||
hass.services.register(DOMAIN, const.SERVICE_TEST_NETWORK,
|
||||
test_network)
|
||||
hass.services.register(DOMAIN, const.SERVICE_STOP_NETWORK,
|
||||
|
||||
Reference in new issue
Block a user