Skip to content

Commit

Permalink
Guard Vodafone Station updates against bad data (home-assistant#132921)
Browse files Browse the repository at this point in the history
guard Vodafone Station updates against bad data
  • Loading branch information
chemelli74 authored Dec 11, 2024
1 parent 1753382 commit 555d7f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/vodafone_station/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from dataclasses import dataclass
from datetime import datetime, timedelta
from json.decoder import JSONDecodeError
from typing import Any

from aiovodafone import VodafoneStationDevice, VodafoneStationSercommApi, exceptions
Expand Down Expand Up @@ -107,6 +108,7 @@ async def _async_update_data(self) -> UpdateCoordinatorDataType:
exceptions.CannotConnect,
exceptions.AlreadyLogged,
exceptions.GenericLoginError,
JSONDecodeError,
) as err:
raise UpdateFailed(f"Error fetching data: {err!r}") from err
except (ConfigEntryAuthFailed, UpdateFailed):
Expand Down

0 comments on commit 555d7f1

Please sign in to comment.