mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Add unique_id to zwave node entity (#14201)
* Add unique_id to zwave node entity * Wait 30s before adding zwave node if its unique_id is not ready * Use only node_id in unique_id. Update name, manufacturer, and product attributes on node update.
This commit is contained in:
@@ -119,6 +119,8 @@ class MockNode(MagicMock):
|
||||
product_type='678',
|
||||
command_classes=None,
|
||||
can_wake_up_value=True,
|
||||
manufacturer_name='Test Manufacturer',
|
||||
product_name='Test Product',
|
||||
network=None,
|
||||
**kwargs):
|
||||
"""Initialize a Z-Wave mock node."""
|
||||
@@ -128,6 +130,8 @@ class MockNode(MagicMock):
|
||||
self.manufacturer_id = manufacturer_id
|
||||
self.product_id = product_id
|
||||
self.product_type = product_type
|
||||
self.manufacturer_name = manufacturer_name
|
||||
self.product_name = product_name
|
||||
self.can_wake_up_value = can_wake_up_value
|
||||
self._command_classes = command_classes or []
|
||||
if network is not None:
|
||||
|
||||
Reference in New Issue
Block a user