Skip to content

Commit

Permalink
Verbose position error
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed May 17, 2023
1 parent 4de5fdf commit 869fd4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions audiconnectpy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ class PositionDataResponse:
@property
def is_supported(self) -> bool:
"""Supported status."""
if not isinstance(self.data, ExtendedDict):
_LOGGER.warning("Position format is incorrect %s", self.data) # type: ignore
return self.data.getr("findCarResponse.Position") is not None

@property
Expand Down

0 comments on commit 869fd4a

Please sign in to comment.