ZWave Sensor tests (#6721)

* ZWave Sensor tests

* Add missed coverage
This commit is contained in:
Adam Mills authored and GitHub committed 2017-03-20 13:17:17 -04:00
1 parent be15ca3f23
commit dddbce82f5
3 files changed
+73 -4

No files matched your search

+2
View File
@@ -58,6 +58,7 @@ class MockValue(MagicMock):
index=0,
command_class=None,
units=None,
type=None,
value_id=None):
"""Initialize a Z-Wave mock value."""
super().__init__()
@@ -69,6 +70,7 @@ class MockValue(MagicMock):
self.index = 0
self.command_class = command_class
self.units = units
self.type = type
if value_id is None:
MockValue._mock_value_id += 1
value_id = MockValue._mock_value_id