* Add config flow to Synology DSM * Use proper sensor unique ID from flow + sensor name * Add description to api_version * Add authentication flow check * Add device_info * Add test_login_failed test * Bump python-synology to 0.5.0 * 0.5.0 test updates * Use NAS S/N as config_flow unique_id * Add missed conf disks + volumes * Review: async_unload the async_track_time_interval * Fix NoneType for disks or volumes * Keep all disks and volumes forever * Update homeassistant/components/synology_dsm/.translations/en.json Co-Authored-By: J. Nick Koston <nick@koston.org> * Update homeassistant/components/synology_dsm/strings.json Co-Authored-By: J. Nick Koston <nick@koston.org> * Fix "Keep all disks and volumes forever" for empty import * Fix prettier * Remove useless LOGGER in config flow * Fix Synology DSM tests doing I/O Co-authored-by: J. Nick Koston <nick@koston.org>
13 lines
326 B
Python
13 lines
326 B
Python
"""Configure Synology DSM tests."""
|
|
from unittest.mock import patch
|
|
|
|
import pytest
|
|
|
|
|
|
@pytest.fixture(name="dsm_bypass_setup", autouse=True)
|
|
def dsm_bypass_setup_fixture():
|
|
"""Mock component setup."""
|
|
with patch(
|
|
"homeassistant.components.synology_dsm.async_setup_entry", return_value=True
|
|
):
|
|
yield
|