diff --git a/custom_components/volkswagen_we_connect_id/sensor.py b/custom_components/volkswagen_we_connect_id/sensor.py index cec72d5..14fc520 100644 --- a/custom_components/volkswagen_we_connect_id/sensor.py +++ b/custom_components/volkswagen_we_connect_id/sensor.py @@ -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)