Skip to content

BUG - The integrattion doesn't work anymore after update of Home Assistant #44

@slingshot74

Description

@slingshot74

Describe the bug
The integration worked fine and I am really happy with it. Today I updated HA and it just found out the inegration doesn't work anymore. The account is not locked out.
I think it might has something to do with the update?

To Reproduce
Go to the integration and look at the values. The are unavailable

Growatt Device Type
Device(s): Inverter

Home Assistant information

  • Home Assistant version:
    Core 2023.11.2
    Supervisor 2023.11.0
    Operating System 11.1
    Frontend 20231030.2
  • Growatt Server API Integration version: v1.0.3 (I think)

Additional context
Log dumo:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:359
Integration: Sensor (documentation, issues)
First occurred: 20:51:07 (1 occurrences)
Last logged: 20:51:07

Error while setting up growatt_server_api platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/growatt_server_api/sensor.py", line 88, in async_setup_entry
devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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/growatt_server_api/sensor.py", line 44, in get_device_list
login_response = api.login(config[CONF_USERNAME], config[CONF_PASSWORD])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/growattServer/init.py", line 132, in login
data = json.loads(response.content.decode('utf-8'))['back']
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNeeds to be triaged to determine if it's an issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions