Fix turn on without speed in homekit controller (#47597)
This commit is contained in:
parent
32476a3fed
commit
b315fcab11
3 changed files with 112 additions and 1 deletions
|
@ -11,6 +11,13 @@ import homeassistant.util.dt as dt_util
|
|||
from tests.components.light.conftest import mock_light_profiles # noqa: F401
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mock_zeroconf():
|
||||
"""Mock zeroconf."""
|
||||
with mock.patch("homeassistant.components.zeroconf.HaZeroconf") as mock_zc:
|
||||
yield mock_zc.return_value
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def utcnow(request):
|
||||
"""Freeze time at a known point."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue