Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error prevented the integration from working at all until it was reloaded. #125

Open
jharris4 opened this issue Jun 12, 2024 · 3 comments
Open

Comments

@jharris4
Copy link

I noticed today that none of the Subaru functionality was working properly. All the entities related to it said unavailable.

I was only able to fix it by reloading the integration manually.

I checked the logs, and the following error was reported:

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: June 10, 2024 at 10:29:22 PM (1 occurrences)
Last logged: June 10, 2024 at 10:29:22 PM

Error setting up entry <redacted_email>@gmail.com for subaru
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/subaru/__init__.py", line 102, in async_setup_entry
    vehicles[vin] = await _get_vehicle_info(controller, vin)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/subaru/__init__.py", line 210, in _get_vehicle_info
    VEHICLE_HAS_LOCK_STATUS: await controller.has_lock_status(vin),
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 334, in has_lock_status
    await self.get_data(vin)
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 448, in get_data
    await self.fetch(vin)
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 608, in fetch
    result = await self._fetch_status(vin)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 1120, in _fetch_status
    raise err
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 1113, in _fetch_status
    await self._locate(vin)
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 1155, in _locate
    js_resp = await self._remote_query(vin, api.API_LOCATE)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/subarulink/controller.py", line 1022, in _remote_query
    raise SubaruException("Remote query failed. Response: %s " % js_resp)
subarulink.exceptions.SubaruException
@tweas
Copy link

tweas commented Jul 30, 2024

How did you reload it manually? Download the files again or run the configuration again?
Never mind, my issues are from the current server outage at Mysubaru. Not from the app.

@jharris4
Copy link
Author

@tweas you can reload the integration through the UI:

Settings -> Devices & services -> Integrations tab -> Subaru (HACS)

Once you navigate to that page, there should be a small ... option on the right next to 'CONFIGURE' under "Integration entries".

If you click the ... there should be a Reload option at the top of the resulting popup menu. Hope that helps!

@tweas
Copy link

tweas commented Jul 31, 2024

Yes, aware of the how's. I was just asking which option you meant when you said reload. Not everyone uses the actual terminolgy from the app when commenting. So, wanted to confirm if "reloading" was the actual "Reload" option. OR, did you have to download and effectively reinstall the custom configuration in order to resolve.

In any case, the issue I was having was that mysubaru itself was down when I ran the latest core update making me think the update had broken the integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants