GithubHelp home page GithubHelp logo

Re-authentication failing about mbapi2020 HOT 5 CLOSED

mattcd216 avatar mattcd216 commented on July 20, 2024
Re-authentication failing

from mbapi2020.

Comments (5)

mattcd216 avatar mattcd216 commented on July 20, 2024 1

Thanks. All working again. Appreciate the help.

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on July 20, 2024

This should be fixed with v0.10.1, please update to this version of the component and report back.

from mbapi2020.

mattcd216 avatar mattcd216 commented on July 20, 2024

Thanks.
Getting 'failed to set up' integration now. Tried reload and restart.

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/mbapi2020/config_flow.py:128
Integration: MercedesME 2020 (documentation, issues)
First occurred: 10:10:10 (5 occurrences)
Last logged: 11:57:36

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 947, in async_init
    flow, result = await task
                   ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 975, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 501, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mbapi2020/config_flow.py", line 128, in async_step_reauth
    self._reauth_entry = self.hass.config_entries.async_get_entry(self.context["entry_id"])
                                                                  ~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'entry_id'

from mbapi2020.

mattcd216 avatar mattcd216 commented on July 20, 2024

Also seeing authentication error in the logs. Is there a way to re-authenticate without removing and re-adding the integration, do you know?
Thanks for the support

from mbapi2020.

ReneNulschDE avatar ReneNulschDE commented on July 20, 2024

Sorry Matt, did not saw your question. As already answered in the forum:

To have a clean state, I would propose that you

  1. delete the integration from HA (Deletion from HACS is not needed).
  2. delete the ".mercedesme-token-cache"-file in /config if present
  3. delete the ".mercedesme-token-cache-..."-files in /config/.storage if present
  4. restart HA
  5. Add the integration again.

This has no impact on your configuration like automations as the id for the sensors will be the same.

from mbapi2020.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.