Rename .sab module to .helpers in SABnzbd (#131481)

Rename sab module to helpers in SABnzbd
This commit is contained in:
Jan-Philipp Benecke 2024-11-24 21:53:52 +01:00 committed by GitHub
parent 8baa477efe
commit 428d7d1ad8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ from .const import (
SERVICE_SET_SPEED,
)
from .coordinator import SabnzbdUpdateCoordinator
from .sab import get_client
from .helpers import get_client
PLATFORMS = [Platform.BUTTON, Platform.NUMBER, Platform.SENSOR]
_LOGGER = logging.getLogger(__name__)

View File

@ -16,7 +16,7 @@ from homeassistant.helpers.selector import (
)
from .const import DOMAIN
from .sab import get_client
from .helpers import get_client
_LOGGER = logging.getLogger(__name__)

View File

@ -26,7 +26,7 @@ def mock_setup_entry() -> Generator[AsyncMock]:
def mock_sabnzbd() -> Generator[AsyncMock]:
"""Mock the Sabnzbd API."""
with patch(
"homeassistant.components.sabnzbd.sab.SabnzbdApi", autospec=True
"homeassistant.components.sabnzbd.helpers.SabnzbdApi", autospec=True
) as mock_sabnzbd:
mock = mock_sabnzbd.return_value
mock.return_value.check_available = True