mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Rename .sab
module to .helpers
in SABnzbd (#131481)
Rename sab module to helpers in SABnzbd
This commit is contained in:
parent
8baa477efe
commit
428d7d1ad8
@ -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__)
|
||||
|
@ -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__)
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user