Change sharkiqpy to sharkiq (#68864)

This commit is contained in:
Jeff Rescignano 2022-03-30 14:41:34 -04:00 committed by GitHub
parent 6a0a77f986
commit 7767258696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 18 additions and 18 deletions

View File

@ -889,8 +889,8 @@ build.json @home-assistant/supervisor
/tests/components/sentry/ @dcramer @frenck /tests/components/sentry/ @dcramer @frenck
/homeassistant/components/serial/ @fabaff /homeassistant/components/serial/ @fabaff
/homeassistant/components/seven_segments/ @fabaff /homeassistant/components/seven_segments/ @fabaff
/homeassistant/components/sharkiq/ @ajmarks /homeassistant/components/sharkiq/ @JeffResc @funkybunch @AritroSaha10
/tests/components/sharkiq/ @ajmarks /tests/components/sharkiq/ @JeffResc @funkybunch @AritroSaha10
/homeassistant/components/shell_command/ @home-assistant/core /homeassistant/components/shell_command/ @home-assistant/core
/tests/components/shell_command/ @home-assistant/core /tests/components/shell_command/ @home-assistant/core
/homeassistant/components/shelly/ @balloob @bieniu @thecode @chemelli74 /homeassistant/components/shelly/ @balloob @bieniu @thecode @chemelli74

View File

@ -3,7 +3,7 @@ import asyncio
from contextlib import suppress from contextlib import suppress
import async_timeout import async_timeout
from sharkiqpy import ( from sharkiq import (
AylaApi, AylaApi,
SharkIqAuthError, SharkIqAuthError,
SharkIqAuthExpiringError, SharkIqAuthExpiringError,

View File

@ -5,7 +5,7 @@ import asyncio
import aiohttp import aiohttp
import async_timeout import async_timeout
from sharkiqpy import SharkIqAuthError, get_ayla_api from sharkiq import SharkIqAuthError, get_ayla_api
import voluptuous as vol import voluptuous as vol
from homeassistant import config_entries, core, exceptions from homeassistant import config_entries, core, exceptions

View File

@ -3,8 +3,8 @@
"name": "Shark IQ", "name": "Shark IQ",
"config_flow": true, "config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/sharkiq", "documentation": "https://www.home-assistant.io/integrations/sharkiq",
"requirements": ["sharkiqpy==0.1.8"], "requirements": ["sharkiq==0.0.1"],
"codeowners": ["@ajmarks"], "codeowners": ["@JeffResc", "@funkybunch", "@AritroSaha10"],
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["sharkiqpy"] "loggers": ["sharkiq"]
} }

View File

@ -4,7 +4,7 @@ from __future__ import annotations
import asyncio import asyncio
from async_timeout import timeout from async_timeout import timeout
from sharkiqpy import ( from sharkiq import (
AylaApi, AylaApi,
SharkIqAuthError, SharkIqAuthError,
SharkIqAuthExpiringError, SharkIqAuthExpiringError,

View File

@ -3,7 +3,7 @@ from __future__ import annotations
from collections.abc import Iterable from collections.abc import Iterable
from sharkiqpy import OperatingModes, PowerModes, Properties, SharkIqVacuum from sharkiq import OperatingModes, PowerModes, Properties, SharkIqVacuum
from homeassistant.components.vacuum import ( from homeassistant.components.vacuum import (
STATE_CLEANING, STATE_CLEANING,

View File

@ -2123,7 +2123,7 @@ sense_energy==0.10.4
sentry-sdk==1.5.8 sentry-sdk==1.5.8
# homeassistant.components.sharkiq # homeassistant.components.sharkiq
sharkiqpy==0.1.8 sharkiq==0.0.1
# homeassistant.components.aquostv # homeassistant.components.aquostv
sharp_aquos_rc==0.3.2 sharp_aquos_rc==0.3.2

View File

@ -1372,7 +1372,7 @@ sense_energy==0.10.4
sentry-sdk==1.5.8 sentry-sdk==1.5.8
# homeassistant.components.sharkiq # homeassistant.components.sharkiq
sharkiqpy==0.1.8 sharkiq==0.0.1
# homeassistant.components.sighthound # homeassistant.components.sighthound
simplehound==0.3 simplehound==0.3

View File

@ -3,7 +3,7 @@ from unittest.mock import patch
import aiohttp import aiohttp
import pytest import pytest
from sharkiqpy import AylaApi, SharkIqAuthError from sharkiq import AylaApi, SharkIqAuthError
from homeassistant import config_entries from homeassistant import config_entries
from homeassistant.components.sharkiq.const import DOMAIN from homeassistant.components.sharkiq.const import DOMAIN
@ -23,7 +23,7 @@ async def test_form(hass):
assert result["type"] == "form" assert result["type"] == "form"
assert result["errors"] == {} 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", "homeassistant.components.sharkiq.async_setup_entry",
return_value=True, return_value=True,
) as mock_setup_entry: ) 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): async def test_reauth_success(hass: HomeAssistant):
"""Test reauth flow.""" """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 = MockConfigEntry(domain=DOMAIN, unique_id=UNIQUE_ID, data=CONFIG)
mock_config.add_to_hass(hass) mock_config.add_to_hass(hass)
@ -98,7 +98,7 @@ async def test_reauth(
msg: str, msg: str,
): ):
"""Test reauth failures.""" """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( result = await hass.config_entries.flow.async_init(
DOMAIN, DOMAIN,
context={"source": config_entries.SOURCE_REAUTH, "unique_id": UNIQUE_ID}, context={"source": config_entries.SOURCE_REAUTH, "unique_id": UNIQUE_ID},

View File

@ -8,7 +8,7 @@ from typing import Any
from unittest.mock import patch from unittest.mock import patch
import pytest 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.homeassistant import SERVICE_UPDATE_ENTITY
from homeassistant.components.sharkiq import DOMAIN from homeassistant.components.sharkiq import DOMAIN
@ -118,7 +118,7 @@ class MockShark(SharkIqVacuum):
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
@patch("sharkiqpy.ayla_api.AylaApi", MockAyla) @patch("sharkiq.ayla_api.AylaApi", MockAyla)
async def setup_integration(hass): async def setup_integration(hass):
"""Build the mock integration.""" """Build the mock integration."""
entry = MockConfigEntry( entry = MockConfigEntry(
@ -225,7 +225,7 @@ async def test_locate(hass):
(RuntimeError, False), (RuntimeError, False),
], ],
) )
@patch("sharkiqpy.ayla_api.AylaApi", MockAyla) @patch("sharkiq.ayla_api.AylaApi", MockAyla)
async def test_coordinator_updates( async def test_coordinator_updates(
hass: HomeAssistant, side_effect: Exception | None, success: bool hass: HomeAssistant, side_effect: Exception | None, success: bool
) -> None: ) -> None: