Fix turn on without speed in homekit controller (#47597)

This commit is contained in:
J. Nick Koston 2021-03-08 08:43:22 -10:00 committed by GitHub
parent 32476a3fed
commit b315fcab11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 112 additions and 1 deletions

View file

@ -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."""