pnbruckner / ha-sun2

Home Assistant Sun2 Sensor
The Unlicense
230 stars 22 forks source link

Do not change point-in-time sensor state from None/unknown to 'none' #83

Closed pnbruckner closed 1 year ago

pnbruckner commented 1 year ago

Fixes #82

Possibly as far back as 2021.12, the string value of "none" is not allowed for a sensor entity that has a device class of timestamp. This will cause an exception. This change leaves the value as None (which results in "unknown", instead of changing it to the invalid value of "none".)