Fix unpatched timeout in gree config flow tests (#59449)
parent
ed6c70a026
commit
ee07e9b379
|
@ -7,6 +7,7 @@ from homeassistant.components.gree.const import DOMAIN as GREE_DOMAIN
|
||||||
from .common import FakeDiscovery
|
from .common import FakeDiscovery
|
||||||
|
|
||||||
|
|
||||||
|
@patch("homeassistant.components.gree.config_flow.DISCOVERY_TIMEOUT", 0)
|
||||||
async def test_creating_entry_sets_up_climate(hass):
|
async def test_creating_entry_sets_up_climate(hass):
|
||||||
"""Test setting up Gree creates the climate components."""
|
"""Test setting up Gree creates the climate components."""
|
||||||
with patch(
|
with patch(
|
||||||
|
@ -32,6 +33,7 @@ async def test_creating_entry_sets_up_climate(hass):
|
||||||
assert len(setup.mock_calls) == 1
|
assert len(setup.mock_calls) == 1
|
||||||
|
|
||||||
|
|
||||||
|
@patch("homeassistant.components.gree.config_flow.DISCOVERY_TIMEOUT", 0)
|
||||||
async def test_creating_entry_has_no_devices(hass):
|
async def test_creating_entry_has_no_devices(hass):
|
||||||
"""Test setting up Gree creates the climate components."""
|
"""Test setting up Gree creates the climate components."""
|
||||||
with patch(
|
with patch(
|
||||||
|
|
Loading…
Reference in New Issue