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

switch_family_error #5

Closed
Resurrection2981 opened this issue May 9, 2024 · 2 comments
Closed

switch_family_error #5

Resurrection2981 opened this issue May 9, 2024 · 2 comments

Comments

@Resurrection2981
Copy link

日志: homeassistant.config_entries
来源: config_entries.py:575
首次发生: 12:51:34 (1 全部发生)
上次记录: 12:51:34

Error setting up entry xxxxxxxxxxxxx for bull
Traceback (most recent call last):
File "/config/custom_components/bull/api.py", line 340, in async_make_request
res = json.loads(response.content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/config/custom_components/bull/api.py", line 173, in async_switch_family
res = await self.async_make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bull/api.py", line 350, in async_make_request
await self.async_refresh_access_token()
File "/config/custom_components/bull/api.py", line 145, in async_refresh_access_token
res = await self.async_make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bull/api.py", line 357, in async_make_request
res = await self.async_make_request(method, path, content_type, header, body, True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bull/api.py", line 342, in async_make_request
raise Exception("connection_failed")
Exception: connection_failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bull/init.py", line 20, in async_setup_entry
await bull_api.async_get_all_devices_list()
File "/config/custom_components/bull/api.py", line 204, in async_get_all_devices_list
await self.async_switch_family(familyId)
File "/config/custom_components/bull/api.py", line 178, in async_switch_family
raise Exception("switch_family_error")
Exception: switch_family_error

@stevenjoezhang
Copy link
Owner

修复了一下: 5ad891f
你可以更新之后看有没有解决

@Resurrection2981
Copy link
Author

没再遇到应该是解决了

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