mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Ignore AussieBroadband services that don't support usage information (#110253)
This commit is contained in:
parent
b47fb68214
commit
cdba14acd4
@ -32,9 +32,12 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
async_get_clientsession(hass),
|
||||
)
|
||||
|
||||
# Ignore services that don't support usage data
|
||||
ignore_types = FETCH_TYPES + ["Hardware"]
|
||||
|
||||
try:
|
||||
await client.login()
|
||||
services = await client.get_services(drop_types=FETCH_TYPES)
|
||||
services = await client.get_services(drop_types=ignore_types)
|
||||
except AuthenticationException as exc:
|
||||
raise ConfigEntryAuthFailed() from exc
|
||||
except ClientError as exc:
|
||||
|
Loading…
x
Reference in New Issue
Block a user