Skip to content

Commit

Permalink
Ignore AussieBroadband services that don't support usage information (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
FieldofClay authored and frenck committed Mar 13, 2024
1 parent 6f6f37c commit 3c4bdeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion homeassistant/components/aussie_broadband/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3c4bdeb

Please sign in to comment.