Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMA Integration not logging out when shutting down Home Assistant #52963

Closed
tomlut opened this issue Jul 13, 2021 · 3 comments · Fixed by kellerza/pysma#81 or #52973
Closed

SMA Integration not logging out when shutting down Home Assistant #52963

tomlut opened this issue Jul 13, 2021 · 3 comments · Fixed by kellerza/pysma#81 or #52973
Assignees

Comments

@tomlut
Copy link

tomlut commented Jul 13, 2021

The problem

After a number of restarts the SMA Solar integration stops connecting.

Visiting the SMA Inverter web interface results in a message saying that too many users are logged in and to wait for someone to log out.

What is version of Home Assistant Core has the issue?

core-2021.7.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

sma

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sma/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: pysma
Source: /usr/local/lib/python3.9/site-packages/pysma/__init__.py:253
First occurred: 21:28:50 (1 occurrences)
Last logged: 21:28:50

Could not start session, Max amount of sessions reached, got {}
Logger: homeassistant.config_entries
Source: components/sma/__init__.py:147
First occurred: 21:28:50 (1 occurrences)
Last logged: 21:28:50

Error setting up entry 10.1.1.230 for sma
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 293, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/sma/__init__.py", line 147, in async_setup_entry
    device_info = await sma.device_info()
  File "/usr/local/lib/python3.9/site-packages/pysma/__init__.py", line 357, in device_info
    await self.read(self._device_info_sensors)
  File "/usr/local/lib/python3.9/site-packages/pysma/__init__.py", line 287, in read
    result_body = await self._read_body(URL_VALUES, payload)
  File "/usr/local/lib/python3.9/site-packages/pysma/__init__.py", line 200, in _read_body
    await self.new_session()
  File "/usr/local/lib/python3.9/site-packages/pysma/__init__.py", line 259, in new_session
    raise SmaAuthenticationException()
pysma.exceptions.SmaAuthenticationException


### Additional information

_No response_
@probot-home-assistant
Copy link

sma documentation
sma source
(message by IssueLinks)

@tomlut tomlut changed the title SMA Integration not logging out. SMA Integration not logging out when shutting down Home Assistant Jul 13, 2021
@probot-home-assistant
Copy link

Hey there @kellerza, @rklomp, mind taking a look at this issue as its been labeled with an integration (sma) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

This was referenced Jul 13, 2021
@rklomp
Copy link
Contributor

rklomp commented Jul 13, 2021

This should be fixed once #52973 is merged and a new home assistant version containing this change is released.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants