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

Error in HA Log with TMA #60

Open
r100gs opened this issue Apr 8, 2022 · 2 comments
Open

Error in HA Log with TMA #60

r100gs opened this issue Apr 8, 2022 · 2 comments

Comments

@r100gs
Copy link

r100gs commented Apr 8, 2022

I get following error in HA Log with the integration

`Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.goecharger
Source: custom_components/goecharger/init.py:87
Integration: go-eCharger (documentation, issues)
First occurred: 06:43:25 (1 occurrences)
Last logged: 06:43:25

Unexpected error fetching goecharger data: float() argument must be a string or a number, not 'NoneType'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
return await self.update_method()
File "/config/custom_components/goecharger/init.py", line 87, in fetch_states
fetchedStatus = await self._hass.async_add_executor_job(goeChargers[chargerName].requestStatus)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/goecharger/goecharger.py", line 309, in requestStatus
response = GoeChargerStatusMapper().mapApiStatusResponse(status)
File "/usr/local/lib/python3.9/site-packages/goecharger/goecharger.py", line 50, in mapApiStatusResponse
t1 = float(valueOrNull(status.get('tma', []), GoeCharger.TMA_1))
TypeError: float() argument must be a string or a number, not 'NoneType'
`

Versions (please complete the following information):

  • home-assistant 2022.3.8
  • Charger Hardware: [v3]
  • Charger Firmware Version: [0.53.1]
  • Plugin Version: [e.g. 0.24.1]

Best regards,
Stefan

@r100gs r100gs changed the title Error in HA Log Error in HA Log with TMA Apr 8, 2022
@pschyrembel258
Copy link

I am experiencing the same error in the logs.

@cathiele
Copy link
Owner

cathiele commented Oct 2, 2022

is this still a problem with 0.25.2? if it is, how can i reproduce it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants