Ignore AussieBroadband services that don't support usage information (#110253)
parent
6f6f37ca24
commit
3c4bdebcda
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue