Comments (5)
То же самое. После какого-то обновления HA (последнего или предпоследнего, точно не знаю). Пропали все устройства. Заново скачивал в HACS, переустанавливал, настраивал - не помогло. В манифесте прописано "requirements": ["Authlib==1.2.1"],
from ha-sberdevices.
Если судить по бэкапам. то обновление было 13 апреля
from ha-sberdevices.
То же самое. После какого-то обновления HA (последнего или предпоследнего, точно не знаю). Пропали все устройства. Заново скачивал в HACS, переустанавливал, настраивал - не помогло. В манифесте прописано "requirements": ["Authlib==1.2.1"],
Обновление HA непричем, восстановился из резервной копии несколько раз. дошел до 2024.4.0, одна и та же ошибка:
Регистратор: homeassistant.components.light
Источник: helpers/entity_platform.py:356
интеграция: Освещение (документация, проблемы)
Первое сообщение: 13:19:33 (1 сообщений)
Последнее сообщение: 13:19:33
Error while setting up sberdevices platform for light
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/sberdevices/light.py", line 41, in async_setup_entry
await home.update_devices_cache()
File "/config/custom_components/sberdevices/api.py", line 93, in update_devices_cache
self._devices = extract_devices(await self.get_device_tree())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 89, in get_device_tree
return (await self.request("GET", "/device_groups/tree"))["result"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 73, in request
await self.update_token()
File "/config/custom_components/sberdevices/api.py", line 66, in update_token
token = await self._sber.fetch_home_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sberdevices/api.py", line 50, in fetch_home_token
).json()["token"]
^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 764, in json
return jsonlib.loads(self.content, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)
from ha-sberdevices.
На резервной копии где лампа добавлена и неактивна, та же самая ошибка
from ha-sberdevices.
Исправлено. Ненадолго, наверное.
Выглядит будто Сбер затягивает гайки: https://companion.devices.sberbank.ru/v13/smarthome/token
недоступен без User-Agent приложения, подсунул Salute+prod%2F24.04.1.15123+%28Android+33%3B+Google+sdk_gphone64_arm64%29
from ha-sberdevices.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-sberdevices.