Skip to content

Commit

Permalink
Merge pull request #258 from pierrei/catch-native-value-type-error
Browse files Browse the repository at this point in the history
Catching TypeError in native_value
  • Loading branch information
mitch-dc authored Jun 13, 2024
2 parents 40f470b + 2d06a11 commit 50139c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/volkswagen_we_connect_id/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def native_value(self) -> StateType:

try:
state = get_object_value(self.entity_description.value(self.data.domains))
except (KeyError, ValueError):
except (TypeError, KeyError, ValueError):
return None

return cast(StateType, state)
Expand Down

0 comments on commit 50139c6

Please sign in to comment.