-
Notifications
You must be signed in to change notification settings - Fork 20
Перестала работать интеграция #25
Copy link
Copy link
Open
Description
Все работало замечательно. Но после очередного обновления HA (может это и не связано с обновлением, просто совпало) работать перестало. В логе ошибка;
Error setting up entry SberDevices for sberdevices
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 761, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/__init__.py", line 26, in async_setup_entry
await home.update_devices_cache()
File "/config/custom_components/sberdevices/api.py", line 143, in update_devices_cache
device_data = await self.get_device_tree()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 137, in get_device_tree
a = (await self.request("GET", "/device_groups/tree"))["result"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 121, in request
await self.update_token()
File "/config/custom_components/sberdevices/api.py", line 113, in update_token
token = await self._sber.fetch_home_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 97, in fetch_home_token
).json()["token"]
~~~~^^
File "/usr/local/lib/python3.13/site-packages/httpx/_models.py", line 832, in json
return jsonlib.loads(self.content, **kwargs)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
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)
Из сберовского приложения все работает исправно.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels