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

This commit is contained in:
FieldofClay 2024-03-14 03:51:40 +11:00 committed by GitHub
parent b47fb68214
commit cdba14acd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: