Look at registry before pulling zwave config values (#14408)

* Look at registry before deciding on ID for zwave values

* Reuse the new function
This commit is contained in:
Andrey authored and Paulus Schoutsen committed 2018-05-12 17:45:36 -04:00
1 parent 7aec098a05
commit d1228d5cf4
5 files changed
+87 -18

No files matched your search

+1
View File
@@ -178,6 +178,7 @@ class MockValue(MagicMock):
MockValue._mock_value_id += 1
value_id = MockValue._mock_value_id
self.value_id = value_id
self.object_id = value_id
for attr_name in kwargs:
setattr(self, attr_name, kwargs[attr_name])