Update pyaussiebb to 0.0.14 (#68293)
This commit is contained in:
parent
0c0df07c52
commit
dbeec1f7da
5 changed files with 8 additions and 6 deletions
|
@ -6,6 +6,7 @@ import logging
|
||||||
|
|
||||||
from aiohttp import ClientError
|
from aiohttp import ClientError
|
||||||
from aussiebb.asyncio import AussieBB
|
from aussiebb.asyncio import AussieBB
|
||||||
|
from aussiebb.const import FETCH_TYPES
|
||||||
from aussiebb.exceptions import AuthenticationException, UnrecognisedServiceType
|
from aussiebb.exceptions import AuthenticationException, UnrecognisedServiceType
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
@ -31,7 +32,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
await client.login()
|
await client.login()
|
||||||
services = await client.get_services()
|
services = await client.get_services(drop_types=FETCH_TYPES)
|
||||||
except AuthenticationException as exc:
|
except AuthenticationException as exc:
|
||||||
raise ConfigEntryAuthFailed() from exc
|
raise ConfigEntryAuthFailed() from exc
|
||||||
except ClientError as exc:
|
except ClientError as exc:
|
||||||
|
|
|
@ -5,6 +5,7 @@ from typing import Any
|
||||||
|
|
||||||
from aiohttp import ClientError
|
from aiohttp import ClientError
|
||||||
from aussiebb.asyncio import AussieBB, AuthenticationException
|
from aussiebb.asyncio import AussieBB, AuthenticationException
|
||||||
|
from aussiebb.const import FETCH_TYPES
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
@ -54,7 +55,7 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured()
|
||||||
|
|
||||||
self.data = user_input
|
self.data = user_input
|
||||||
self.services = await self.client.get_services() # type: ignore[union-attr]
|
self.services = await self.client.get_services(drop_types=FETCH_TYPES) # type: ignore[union-attr]
|
||||||
|
|
||||||
if not self.services:
|
if not self.services:
|
||||||
return self.async_abort(reason="no_services_found")
|
return self.async_abort(reason="no_services_found")
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/aussie_broadband",
|
"documentation": "https://www.home-assistant.io/integrations/aussie_broadband",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"pyaussiebb==0.0.11"
|
"pyaussiebb==0.0.14"
|
||||||
],
|
],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
"@nickw444",
|
"@nickw444",
|
||||||
|
|
|
@ -1353,7 +1353,7 @@ pyatome==0.1.1
|
||||||
pyatv==0.10.0
|
pyatv==0.10.0
|
||||||
|
|
||||||
# homeassistant.components.aussie_broadband
|
# homeassistant.components.aussie_broadband
|
||||||
pyaussiebb==0.0.11
|
pyaussiebb==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.balboa
|
# homeassistant.components.balboa
|
||||||
pybalboa==0.13
|
pybalboa==0.13
|
||||||
|
|
|
@ -893,7 +893,7 @@ pyatmo==6.2.4
|
||||||
pyatv==0.10.0
|
pyatv==0.10.0
|
||||||
|
|
||||||
# homeassistant.components.aussie_broadband
|
# homeassistant.components.aussie_broadband
|
||||||
pyaussiebb==0.0.11
|
pyaussiebb==0.0.14
|
||||||
|
|
||||||
# homeassistant.components.balboa
|
# homeassistant.components.balboa
|
||||||
pybalboa==0.13
|
pybalboa==0.13
|
||||||
|
|
Loading…
Add table
Reference in a new issue