Closed
Description
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'
![Screenshot 2020-03-05 at 22 23 45](https://user-images.githubusercontent.com/36936293/76026920-ff53b900-5f2f-11ea-87a4-dc528e52b0d1.png)