Over night, when the inverter is offline the requesta are running into timeout. This leads to an error in Home Assistant:
Logger: homeassistant
Source: runner.py:146
First occurred: 21:55:29 (39 occurrences)
Last logged: 22:00:19
Error doing job: Unclosed client session
There probably needs to be a try/except call around the actual request to capture timeouts and close the session.
The python error
File "/usr/local/lib/python3.12/site-packages/APsystemsEZ1/__init__.py", line 229, in get_max_power
response = await self._request("getMaxPower")
File "/usr/local/lib/python3.12/site-packages/APsystemsEZ1/__init__.py", line 76, in _request
ses = ClientSession()
What happened?
Over night, when the inverter is offline the requesta are running into timeout. This leads to an error in Home Assistant:
There probably needs to be a try/except call around the actual request to capture timeouts and close the session.
The python error
Your python version
3.12
Your OS inlcuding your version
Ubuntu 22.04 Home Assistant 2024.4.1 in docker