Skip to content

Commit

Permalink
General logmessage cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
turbokongen committed Aug 8, 2016
1 parent 19fae75 commit 20c8fcd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
24 changes: 13 additions & 11 deletions homeassistant/components/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,29 @@ homematic:
example: PRESS_LONG

zwave:
start_network:
description: Start the zwave network. This might take a while, depending on how big your zwave network is.

stop_network:
description: Stop the zwave network, all updates into HASS will stop.

heal_network:
description: Start a zwave network heal. This might take a while and will slow down the zwave network greatly while it is being processed. Refer to OZW.log for details.

add_node:
description: Add a new node to the zwave network. Refer to OZW.log for details.

add_node_secure:
description: Add a new node to the zwave network with secure communications. Node must support this, and network key must be set. Refer to OZW.log for details.

cancel_command:
description: Cancel a running zwave controller command. Use this to exit add_node, if you wasn't going to use it but activated it.

heal_network:
description: Start a zwave network heal. This might take a while and will slow down the zwave network greatly while it is being processed. Refer to OZW.log for details.

remove_node:
description: Remove a node from the zwave network. Refer to OZW.log for details.

test_network:
description: This will send test to nodes in the zwave network. This will greatly slow down the zwave network while it is being processed. Refer to OZW.log for details.
start_network:
description: Start the zwave network. This might take a while, depending on how big your zwave network is.

stop_network:
description: Stop the zwave network, all updates into HASS will stop.

soft_reset:
description: This will reset the controller without removing its data. Use carefully because not all controllers support this. Refer to controllers manual.

test_network:
description: This will send test to nodes in the zwave network. This will greatly slow down the zwave network while it is being processed. Refer to OZW.log for details.
20 changes: 10 additions & 10 deletions homeassistant/components/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,20 +338,20 @@ def value_added(node, value):
component, node.node_id)
if node.generic not in generic_device_class and \
None not in generic_device_class:
_LOGGER.debug("node.generic %s not None and in \
generic_device_class %s",
_LOGGER.debug("node.generic %s not None and in "
"generic_device_class %s",
node.generic, generic_device_class)
continue
if node.specific not in specific_device_class and \
None not in specific_device_class:
_LOGGER.debug("node.specific %s is not None and in \
specific_device_class %s", node.specific,
_LOGGER.debug("node.specific %s is not None and in "
"specific_device_class %s", node.specific,
specific_device_class)
continue
if value.command_class not in command_class and \
None not in command_class:
_LOGGER.debug("value.command_class %s is not None \
and in command_class %s",
_LOGGER.debug("value.command_class %s is not None "
"and in command_class %s",
value.command_class, command_class)
continue
if value_type != value.type and value_type is not None:
Expand All @@ -364,10 +364,10 @@ def value_added(node, value):
continue

# Configure node
_LOGGER.debug("Adding Node_id=%s Generic_command_class=%s, \
Specific_command_class=%s, \
Command_class=%s, Value type=%s, \
Genre=%s", node.node_id,
_LOGGER.debug("Adding Node_id=%s Generic_command_class=%s, "
"Specific_command_class=%s, "
"Command_class=%s, Value type=%s, "
"Genre=%s", node.node_id,
node.generic, node.specific,
value.command_class, value.type,
value.genre)
Expand Down

0 comments on commit 20c8fcd

Please sign in to comment.