Fix tests

This commit is contained in:
Paulus Schoutsen 2016-09-29 21:42:36 -07:00
parent c000e74d0a
commit 7ac8425099

View File

@ -40,6 +40,7 @@ class TestNX584SensorSetup(unittest.TestCase):
def test_setup_no_config(self):
"""Test the setup with no configuration."""
hass = mock.MagicMock()
hass.pool.worker_count = 2
assert setup_component(hass, 'binary_sensor', {'nx584': {}})
@mock.patch('homeassistant.components.binary_sensor.nx584.NX584Watcher')