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

All Entities unavailable since yesterday, HA 2025.1.1 / 2025.1.2 #23

Closed
LuckyTriple7 opened this issue Jan 10, 2025 · 2 comments
Closed

Comments

@LuckyTriple7
Copy link

All HAFAS Entities are unavailable since yesterday.
When i try to add an new Sensor, i see the following Error in the Log:

Unexpected exception: Expecting value: line 1 column 1 (char 0)

Traceback (most recent call last):
File "/config/custom_components/hafas/config_flow.py", line 162, in async_step_user
self.data = await validate_input(self.hass, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hafas/config_flow.py", line 122, in validate_input
start_stations = await hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
get_stations, client, data[CONF_START]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hafas/config_flow.py", line 104, in get_stations
stations = client.locations(station_name)
File "/usr/local/lib/python3.13/site-packages/pyhafas/client.py", line 230, in locations
res = self.profile.request(body)
File "/usr/local/lib/python3.13/site-packages/pyhafas/profile/base/helper/request.py", line 96, in request
return HafasResponse(res, BaseErrorCodesMapping)
File "/usr/local/lib/python3.13/site-packages/pyhafas/types/hafas_response.py", line 27, in init
data = json.loads(raw_hafas_response.text)
File "/usr/local/lib/python3.13/json/init.py", line 346, in loads
return _default_decoder.decode(s)
~~~~~~~~~~~~~~~~~~~~~~~^^^
File "/usr/local/lib/python3.13/json/decoder.py", line 345, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/json/decoder.py", line 363, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@Alex9779
Copy link

see #21

@akloeckner
Copy link
Owner

Closing as duplicate

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

3 participants