Bump reolink-aio to 0.2.2 (#85848)

This commit is contained in:
starkillerOG 2023-01-14 02:25:22 +01:00 committed by GitHub
parent bca462401c
commit 5f67e79ad9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 18 deletions

View file

@ -63,8 +63,7 @@ class ReolinkHost:
"""Connect to Reolink host."""
self._api.expire_session()
if not await self._api.get_host_data():
return False
await self._api.get_host_data()
if self._api.mac_address is None:
return False
@ -123,9 +122,9 @@ class ReolinkHost:
return True
async def update_states(self) -> bool:
"""Call the API of the camera device to update the states."""
return await self._api.get_states()
async def update_states(self) -> None:
"""Call the API of the camera device to update the internal states."""
await self._api.get_states()
async def disconnect(self):
"""Disconnect from the API, so the connection will be released."""