Ignore AussieBroadband services that don't support usage information (#110253)

pull/113250/head
FieldofClay 2024-03-14 03:51:40 +11:00 committed by Franck Nijhof
parent 6f6f37ca24
commit 3c4bdebcda
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 4 additions and 1 deletions

View File

@ -31,9 +31,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: