Traceback (most recent call last):


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 266, in async_update_ha_state

self._async_write_ha_state()


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 308, in _async_write_ha_state

attr.update(self.device_state_attributes or {})


 "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/bmw_connected_drive/lock.py", line 62, in device_state_attributes

"door_lock_state": vehicle_state.door_lock_state.value,
AttributeError: 'NoneType' object has no attribute 'value'

Traceback (most recent call last):


 "/usr/local/lib/python2.7/site-packages/tornado/http1connection.py", line 238, in _read_message

delegate.finish()


 "/usr/local/lib/python2.7/site-packages/tornado/httpserver.py", line 289, in finish

self.delegate.finish()


 "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2047, in finish

self.execute()


 "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2067, in execute

**self.handler_kwargs)


 "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 187, in __init__

self.initialize(**kwargs)


 "/usr/local/lib/python2.7/site-packages/salt/netapi/rest_tornado/saltnado.py", line 442, in initialize

self.application.opts,


 "/usr/local/lib/python2.7/site-packages/salt/netapi/rest_tornado/saltnado.py", line 314, in __init__

self.event.set_event_handler(self._handle_event_socket_recv)
AttributeError: 'RAETEvent' object has no attribute 'set_event_handler'
