Directly call async_write_ha_state (#33508)
* Directly call async_write_ha_state * Address comments * Fix tests
This commit is contained in:
1 parent
4e043b3123
commit
aaa1d06809
129 files changed
+263
-278
No files matched your search
@@ -5,25 +5,6 @@ import pytest
|
||||
|
||||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockDependency, mock_coro
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def zeroconf_mock():
|
||||
"""Mock zeroconf."""
|
||||
with MockDependency("zeroconf") as mocked_zeroconf:
|
||||
mocked_zeroconf.Zeroconf.return_value.register_service.return_value = mock_coro(
|
||||
True
|
||||
)
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def netdisco_mock():
|
||||
"""Mock netdisco."""
|
||||
with MockDependency("netdisco", "discovery"):
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def recorder_url_mock():
|
||||
|
||||
Reference in new issue
Block a user