Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet committed Dec 2, 2024
1 parent da86acf commit b8cd30a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/renault_api/kamereon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,10 @@ class KamereonVehicleDataResponse(KamereonResponse):

def get_attributes(self, schema: Schema) -> KamereonVehicleDataAttributes:
"""Return jwt token."""
attributes = {}
if self.data and self.data.attributes is not None:
return cast(
KamereonVehicleDataAttributes, schema.load(self.data.attributes)
)
raise cast(KamereonVehicleDataAttributes, schema.load({}))
attributes = self.data.attributes
return cast(KamereonVehicleDataAttributes, schema.load(attributes))


@dataclass
Expand Down

0 comments on commit b8cd30a

Please sign in to comment.