Change sharkiqpy to sharkiq (#68864)
This commit is contained in:
parent
6a0a77f986
commit
7767258696
10 changed files with 18 additions and 18 deletions
|
@ -889,8 +889,8 @@ build.json @home-assistant/supervisor
|
|||
/tests/components/sentry/ @dcramer @frenck
|
||||
/homeassistant/components/serial/ @fabaff
|
||||
/homeassistant/components/seven_segments/ @fabaff
|
||||
/homeassistant/components/sharkiq/ @ajmarks
|
||||
/tests/components/sharkiq/ @ajmarks
|
||||
/homeassistant/components/sharkiq/ @JeffResc @funkybunch @AritroSaha10
|
||||
/tests/components/sharkiq/ @JeffResc @funkybunch @AritroSaha10
|
||||
/homeassistant/components/shell_command/ @home-assistant/core
|
||||
/tests/components/shell_command/ @home-assistant/core
|
||||
/homeassistant/components/shelly/ @balloob @bieniu @thecode @chemelli74
|
||||
|
|
|
@ -3,7 +3,7 @@ import asyncio
|
|||
from contextlib import suppress
|
||||
|
||||
import async_timeout
|
||||
from sharkiqpy import (
|
||||
from sharkiq import (
|
||||
AylaApi,
|
||||
SharkIqAuthError,
|
||||
SharkIqAuthExpiringError,
|
||||
|
|
|
@ -5,7 +5,7 @@ import asyncio
|
|||
|
||||
import aiohttp
|
||||
import async_timeout
|
||||
from sharkiqpy import SharkIqAuthError, get_ayla_api
|
||||
from sharkiq import SharkIqAuthError, get_ayla_api
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import config_entries, core, exceptions
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"name": "Shark IQ",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/sharkiq",
|
||||
"requirements": ["sharkiqpy==0.1.8"],
|
||||
"codeowners": ["@ajmarks"],
|
||||
"requirements": ["sharkiq==0.0.1"],
|
||||
"codeowners": ["@JeffResc", "@funkybunch", "@AritroSaha10"],
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["sharkiqpy"]
|
||||
"loggers": ["sharkiq"]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
|||
import asyncio
|
||||
|
||||
from async_timeout import timeout
|
||||
from sharkiqpy import (
|
||||
from sharkiq import (
|
||||
AylaApi,
|
||||
SharkIqAuthError,
|
||||
SharkIqAuthExpiringError,
|
||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
|||
|
||||
from collections.abc import Iterable
|
||||
|
||||
from sharkiqpy import OperatingModes, PowerModes, Properties, SharkIqVacuum
|
||||
from sharkiq import OperatingModes, PowerModes, Properties, SharkIqVacuum
|
||||
|
||||
from homeassistant.components.vacuum import (
|
||||
STATE_CLEANING,
|
||||
|
|
|
@ -2123,7 +2123,7 @@ sense_energy==0.10.4
|
|||
sentry-sdk==1.5.8
|
||||
|
||||
# homeassistant.components.sharkiq
|
||||
sharkiqpy==0.1.8
|
||||
sharkiq==0.0.1
|
||||
|
||||
# homeassistant.components.aquostv
|
||||
sharp_aquos_rc==0.3.2
|
||||
|
|
|
@ -1372,7 +1372,7 @@ sense_energy==0.10.4
|
|||
sentry-sdk==1.5.8
|
||||
|
||||
# homeassistant.components.sharkiq
|
||||
sharkiqpy==0.1.8
|
||||
sharkiq==0.0.1
|
||||
|
||||
# homeassistant.components.sighthound
|
||||
simplehound==0.3
|
||||
|
|
|
@ -3,7 +3,7 @@ from unittest.mock import patch
|
|||
|
||||
import aiohttp
|
||||
import pytest
|
||||
from sharkiqpy import AylaApi, SharkIqAuthError
|
||||
from sharkiq import AylaApi, SharkIqAuthError
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.sharkiq.const import DOMAIN
|
||||
|
@ -23,7 +23,7 @@ async def test_form(hass):
|
|||
assert result["type"] == "form"
|
||||
assert result["errors"] == {}
|
||||
|
||||
with patch("sharkiqpy.AylaApi.async_sign_in", return_value=True), patch(
|
||||
with patch("sharkiq.AylaApi.async_sign_in", return_value=True), patch(
|
||||
"homeassistant.components.sharkiq.async_setup_entry",
|
||||
return_value=True,
|
||||
) as mock_setup_entry:
|
||||
|
@ -68,7 +68,7 @@ async def test_form_error(hass: HomeAssistant, exc: Exception, base_error: str):
|
|||
|
||||
async def test_reauth_success(hass: HomeAssistant):
|
||||
"""Test reauth flow."""
|
||||
with patch("sharkiqpy.AylaApi.async_sign_in", return_value=True):
|
||||
with patch("sharkiq.AylaApi.async_sign_in", return_value=True):
|
||||
mock_config = MockConfigEntry(domain=DOMAIN, unique_id=UNIQUE_ID, data=CONFIG)
|
||||
mock_config.add_to_hass(hass)
|
||||
|
||||
|
@ -98,7 +98,7 @@ async def test_reauth(
|
|||
msg: str,
|
||||
):
|
||||
"""Test reauth failures."""
|
||||
with patch("sharkiqpy.AylaApi.async_sign_in", side_effect=side_effect):
|
||||
with patch("sharkiq.AylaApi.async_sign_in", side_effect=side_effect):
|
||||
result = await hass.config_entries.flow.async_init(
|
||||
DOMAIN,
|
||||
context={"source": config_entries.SOURCE_REAUTH, "unique_id": UNIQUE_ID},
|
||||
|
|
|
@ -8,7 +8,7 @@ from typing import Any
|
|||
from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
from sharkiqpy import AylaApi, SharkIqAuthError, SharkIqNotAuthedError, SharkIqVacuum
|
||||
from sharkiq import AylaApi, SharkIqAuthError, SharkIqNotAuthedError, SharkIqVacuum
|
||||
|
||||
from homeassistant.components.homeassistant import SERVICE_UPDATE_ENTITY
|
||||
from homeassistant.components.sharkiq import DOMAIN
|
||||
|
@ -118,7 +118,7 @@ class MockShark(SharkIqVacuum):
|
|||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
@patch("sharkiqpy.ayla_api.AylaApi", MockAyla)
|
||||
@patch("sharkiq.ayla_api.AylaApi", MockAyla)
|
||||
async def setup_integration(hass):
|
||||
"""Build the mock integration."""
|
||||
entry = MockConfigEntry(
|
||||
|
@ -225,7 +225,7 @@ async def test_locate(hass):
|
|||
(RuntimeError, False),
|
||||
],
|
||||
)
|
||||
@patch("sharkiqpy.ayla_api.AylaApi", MockAyla)
|
||||
@patch("sharkiq.ayla_api.AylaApi", MockAyla)
|
||||
async def test_coordinator_updates(
|
||||
hass: HomeAssistant, side_effect: Exception | None, success: bool
|
||||
) -> None:
|
||||
|
|
Loading…
Add table
Reference in a new issue