Coder Social home page Coder Social logo

Comments (8)

srusinov avatar srusinov commented on September 25, 2024

I suppose this is the same issue as on my end:

Unexpected error fetching FusionSolarKiosk data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fusion_solar/sensor.py", line 79, in async_update_kiosk_data
data[f'{DOMAIN}-{kiosk.id}'] = await hass.async_add_executor_job(api.getRealTimeKpi, kiosk.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fusion_solar/fusion_solar/kiosk/kiosk_api.py", line 37, in getRealTimeKpi
jsonData[ATTR_DATA] = json.loads(html.unescape(jsonData[ATTR_DATA]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/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)

Maybe the protocol changed recently?

from homeassistant-fusionsolar.

psleutel avatar psleutel commented on September 25, 2024

After deleting the integration and adding it again everything worked again

from homeassistant-fusionsolar.

Julimos avatar Julimos commented on September 25, 2024

Works again since today

from homeassistant-fusionsolar.

magilla13 avatar magilla13 commented on September 25, 2024

This issue started to me today.
All the entities are unavailable. If I delete the app and reinstall it is working but loosing all the historical data...

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 25, 2024

What happens if you just restart Home Assistant?

from homeassistant-fusionsolar.

Julimos avatar Julimos commented on September 25, 2024

For me, restarting did not help.
But still works as reported yesterday.

from homeassistant-fusionsolar.

magilla13 avatar magilla13 commented on September 25, 2024

Restart itself didn't help, but somehow today started to work again properly...

from homeassistant-fusionsolar.

tijsverkoyen avatar tijsverkoyen commented on September 25, 2024

Ok, so it works for everyone again?
I'm going to close the issue. Feel free to reopen it if it is not resolved. Although I think it is more Huawei related then to this integration

from homeassistant-fusionsolar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.