The problem
Environment
- Home Assistant release with the issue: 0.106.5
- Last working Home Assistant release (if known):
- Operating environment (Hass.io/Docker/Windows/etc.): hass.io on Pi
- Integration causing this issue: bmw_connected_drive
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/bmw_connected_drive/
Problem-relevant configuration.yaml
bmw_connected_drive:
name:
username: !secret bmw_username
password: !secret bmw_password
region: "rest_of_world"
Traceback/Error logs
2020-03-05 21:49:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 284, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 328, in _async_write_ha_state
attr.update(self.device_state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 122, in device_state_attributes
result["lights_parking"] = vehicle_state.parking_lights.value
AttributeError: 'NoneType' object has no attribute 'value'

Additional information
Unfortunately The issue is not solved. I missed the bot stale notification…
I still have the issue in my logs. Updated to the newest versions.
It’s still on our list to fix in the bimmerconnected library.
We want to add another check to the function that determines which sensors are available and can be added to HA. That way the parking_lights will only be added when the data is available.
@nilsvdb82 the issue with the
door_lock_stateis solved in HA 0.107. The issue withlights_parkingis on our list to fix.Just done! Hope all is right
Thank You
Gerard wrote on 10/03/2020 00:18:
– Sent from Postbox https://www.postbox-inc.com