Skip to content

influxdb.py catch NoneType values#206

Open
pfauenauge wants to merge 1 commit intobohdan-s:mainfrom
pfauenauge:patch-1
Open

influxdb.py catch NoneType values#206
pfauenauge wants to merge 1 commit intobohdan-s:mainfrom
pfauenauge:patch-1

Conversation

@pfauenauge
Copy link
Copy Markdown

NoneType values raise error. Catch those with empty string. This might cause issues if data type is float.

NoneType values raise error. Catch those with empty string. This might cause issues if data type is float.
@Trickx
Copy link
Copy Markdown

Trickx commented Apr 23, 2025

This patch fixes an issue when SunGather runs on level 2 against an SG10RT.
After sundown the inverter provides whatever NoneType value for at least one register,
which I tried to write into an InfluxDB.
Without this patch SunGather simply crashed.

@bohdan-s please consider merging it.
Thanks for fixing this issue.

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

Successfully merging this pull request may close these issues.

2 participants