Add zwave per-node entity. (#6690)
* Add zwave per-node entity. * Disable lint import error * Add tests for base class * More tests * More tests * Sort .coveragerc * more tests * Move location, battery and wakeup to node entity * More tests * Cleanup * Make zwave node entity visible by default * Remove battery sensor * Fix tests
This commit is contained in:
parent
20c5f9de4b
commit
8a86ec5b74
11 changed files with 408 additions and 133 deletions
|
@ -69,3 +69,9 @@ def check_value_schema(value, schema):
|
|||
value.instance, schema[const.DISC_INSTANCE])
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def node_name(node):
|
||||
"""Return the name of the node."""
|
||||
return node.name or '{} {}'.format(
|
||||
node.manufacturer_name, node.product_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue