mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix tests
This commit is contained in:
parent
c000e74d0a
commit
7ac8425099
@ -40,6 +40,7 @@ class TestNX584SensorSetup(unittest.TestCase):
|
|||||||
def test_setup_no_config(self):
|
def test_setup_no_config(self):
|
||||||
"""Test the setup with no configuration."""
|
"""Test the setup with no configuration."""
|
||||||
hass = mock.MagicMock()
|
hass = mock.MagicMock()
|
||||||
|
hass.pool.worker_count = 2
|
||||||
assert setup_component(hass, 'binary_sensor', {'nx584': {}})
|
assert setup_component(hass, 'binary_sensor', {'nx584': {}})
|
||||||
|
|
||||||
@mock.patch('homeassistant.components.binary_sensor.nx584.NX584Watcher')
|
@mock.patch('homeassistant.components.binary_sensor.nx584.NX584Watcher')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user