Skip to content

Complex password does not work #60

Description

@PatrikTrestik

Discussed in #59

Originally posted by mpasecny January 8, 2025
I have problem setting up your integration - I have correct local IP adress of my Solax EV Charger (X3, not sure about generation, probably G1), i checked password (can log into local web page of Solax EV Charger), but after setting up integration I got error:

This error originated from a custom integration.

Logger: custom_components.solax_http.plugin_factory
Source: custom_components/solax_http/plugin_factory.py:66
integration: SolaX HTTP API (documentation, issues)
First occurred: January 7, 2025 at 19:48:17 (3 occurrences)
Last logged: 09:27:38

Failed to read data from http: 0:code,message:"failed"}

and consequent:
Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: January 7, 2025 at 19:48:17 (3 occurrences)
Last logged: 09:27:38

Error setting up entry SolaX API for solax_http
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solax_http/init.py", line 34, in async_setup_entry
plugin = await PluginFactory.get_plugin_instance(config[CONF_HOST], config[CONF_SN])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solax_http/plugin_factory.py", line 125, in get_plugin_instance
sn = info["sn"]
~~~~^^^^^^
TypeError: 'NoneType' object is not subscriptable

have no clue, what is the problem :-)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions