From f10bf8da08a9a343c194cd2ef8749c5a5358b40e Mon Sep 17 00:00:00 2001 From: Richard Kroegel <42204099+rikroe@users.noreply.github.com> Date: Sat, 17 Feb 2024 08:32:04 +0100 Subject: [PATCH] Update fingerprints_in_homeassistant.rst --- .../development/fingerprints_in_homeassistant.rst | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/source/development/fingerprints_in_homeassistant.rst b/docs/source/development/fingerprints_in_homeassistant.rst index 21745fcf..bca9c891 100644 --- a/docs/source/development/fingerprints_in_homeassistant.rst +++ b/docs/source/development/fingerprints_in_homeassistant.rst @@ -6,13 +6,15 @@ This enables debugging of the UI in Home Assistant which is not possible from py .. warning:: This is for the `Home Assistant development environment `_ only! Do not do this on your live instance! -Setup and start Home Assistant in the development environment at least once and let all python packages install (``hass -c ./config``). -If not already done, set up the **BMW Connected Drive Integration**. You do not even have to log in with your own account. It is sufficient if the dependencies are installed (which is done when you see the login form). -Shut down Homeassistant afterwards. +Setup and start Home Assistant in the `development environment `_ at least once and let all python packages install (``hass -c ./config``). +If not already done, set up the **BMW Connected Drive Integration**. You need to login a MyBMW account at least once. Shut down Homeassistant afterwards. + +.. note:: + The MyBMW account does not need to contain vehicles, a demo account without attached vehicles is sufficient. Now, we have to "hack" our mocked backend calls into Home Assistant. -Edit ``homeassistant/components/bmw_connected_drive/coordinator.py`` and locate the function ``_async_update_data``. We now have to replace ``await self.account.get_vehicles()``. The ``try .. except`` block should look like this: +Edit ``homeassistant/components/bmw_connected_drive/coordinator.py`` and locate the function ``def _async_update_data()``. We now have to replace ``await self.account.get_vehicles()``. The ``try .. except`` block should look like this: .. code-block:: python