From 1bfe752dfab5b18a5913a07c1afd89352b511ccb Mon Sep 17 00:00:00 2001 From: Keith Pine Date: Thu, 15 Aug 2019 14:22:13 -0700 Subject: [PATCH] Remove zwave.update_config service call (#25959) The python-openzwave API which provides the implementation of the config update does not actually work in the homeassistant fork. To avoid confusion, remove the service call for now. --- homeassistant/components/zwave/__init__.py | 6 ------ homeassistant/components/zwave/const.py | 1 - homeassistant/components/zwave/services.yaml | 3 --- 3 files changed, 10 deletions(-) diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index cd456ede75e..bc40d46b8ba 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -564,11 +564,6 @@ async def async_setup_entry(hass, config_entry): _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") @@ -891,7 +886,6 @@ async def async_setup_entry(hass, config_entry): hass.services.register(DOMAIN, const.SERVICE_CANCEL_COMMAND, cancel_command) 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, stop_network) hass.services.register( diff --git a/homeassistant/components/zwave/const.py b/homeassistant/components/zwave/const.py index d6d1265d09f..83fb43fd3fb 100644 --- a/homeassistant/components/zwave/const.py +++ b/homeassistant/components/zwave/const.py @@ -68,7 +68,6 @@ SERVICE_RENAME_VALUE = "rename_value" SERVICE_REFRESH_ENTITY = "refresh_entity" SERVICE_REFRESH_NODE = "refresh_node" SERVICE_RESET_NODE_METERS = "reset_node_meters" -SERVICE_UPDATE_CONFIG = "update_config" EVENT_SCENE_ACTIVATED = "zwave.scene_activated" EVENT_NODE_EVENT = "zwave.node_event" diff --git a/homeassistant/components/zwave/services.yaml b/homeassistant/components/zwave/services.yaml index 37b12232759..52b135eba81 100644 --- a/homeassistant/components/zwave/services.yaml +++ b/homeassistant/components/zwave/services.yaml @@ -137,9 +137,6 @@ set_wakeup: value: description: Value of the interval to set. (integer) -update_config: - description: Attempt to update ozw configuration files from git to support newer devices. - start_network: description: Start the Z-Wave network. This might take a while, depending on how big your Z-Wave network is.