Skip to content

Commit

Permalink
Switch to reolink-aio (#85014)
Browse files Browse the repository at this point in the history
* switch to reolink-aio

* fix imports
  • Loading branch information
starkillerOG authored Jan 3, 2023
1 parent 8db086f commit c4a5d12
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -946,8 +946,8 @@ build.json @home-assistant/supervisor
/tests/components/remote/ @home-assistant/core
/homeassistant/components/renault/ @epenet
/tests/components/renault/ @epenet
/homeassistant/components/reolink/ @starkillerOG @JimStar
/tests/components/reolink/ @starkillerOG @JimStar
/homeassistant/components/reolink/ @starkillerOG
/tests/components/reolink/ @starkillerOG
/homeassistant/components/repairs/ @home-assistant/core
/tests/components/repairs/ @home-assistant/core
/homeassistant/components/repetier/ @MTrab @ShadowBr0ther
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/reolink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from aiohttp import ClientConnectorError
import async_timeout
from reolink_ip.exceptions import ApiError, InvalidContentTypeError
from reolink_aio.exceptions import ApiError, InvalidContentTypeError

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import EVENT_HOMEASSISTANT_STOP, Platform
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/reolink/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
from typing import Any

from reolink_ip.exceptions import ApiError, CredentialsInvalidError
from reolink_aio.exceptions import ApiError, CredentialsInvalidError
import voluptuous as vol

from homeassistant import config_entries, core, exceptions
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/reolink/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from typing import Any

import aiohttp
from reolink_ip.api import Host
from reolink_ip.exceptions import (
from reolink_aio.api import Host
from reolink_aio.exceptions import (
ApiError,
CredentialsInvalidError,
InvalidContentTypeError,
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/reolink/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"name": "Reolink IP NVR/camera",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/reolink",
"requirements": ["reolink-ip==0.0.40"],
"codeowners": ["@starkillerOG", "@JimStar"],
"requirements": ["reolink-aio==0.1.1"],
"codeowners": ["@starkillerOG"],
"iot_class": "local_polling",
"loggers": ["reolink-ip"]
"loggers": ["reolink-aio"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ regenmaschine==2022.11.0
renault-api==0.1.11

# homeassistant.components.reolink
reolink-ip==0.0.40
reolink-aio==0.1.1

# homeassistant.components.python_script
restrictedpython==5.2
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ regenmaschine==2022.11.0
renault-api==0.1.11

# homeassistant.components.reolink
reolink-ip==0.0.40
reolink-aio==0.1.1

# homeassistant.components.python_script
restrictedpython==5.2
Expand Down
2 changes: 1 addition & 1 deletion tests/components/reolink/test_config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import AsyncMock, Mock, patch

import pytest
from reolink_ip.exceptions import ApiError, CredentialsInvalidError
from reolink_aio.exceptions import ApiError, CredentialsInvalidError

from homeassistant import config_entries, data_entry_flow
from homeassistant.components.reolink import const
Expand Down

0 comments on commit c4a5d12

Please sign in to comment.