Cleanup coordinators in synology_dsm (#73257)
Co-authored-by: Michael <35783820+mib1185@users.noreply.github.com>
This commit is contained in:
parent
1d6068fa09
commit
22daea27c2
15 changed files with 287 additions and 233 deletions
|
@ -24,9 +24,9 @@ from tests.common import MockConfigEntry
|
|||
@pytest.mark.no_bypass_setup
|
||||
async def test_services_registered(hass: HomeAssistant):
|
||||
"""Test if all services are registered."""
|
||||
with patch(
|
||||
"homeassistant.components.synology_dsm.SynoApi.async_setup", return_value=True
|
||||
), patch("homeassistant.components.synology_dsm.PLATFORMS", return_value=[]):
|
||||
with patch("homeassistant.components.synology_dsm.common.SynologyDSM"), patch(
|
||||
"homeassistant.components.synology_dsm.PLATFORMS", return_value=[]
|
||||
):
|
||||
entry = MockConfigEntry(
|
||||
domain=DOMAIN,
|
||||
data={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue