Files
DarkStarDS9 991cef1605 Fix: /homekit/accessories returns null when characteristic metadata contains NaN or Infinity (#2)
* Fix JSON encoding crash when HomeKit characteristic values are NaN or Infinity

JSONEncoder throws EncodingError.invalidValue for NaN/Infinity doubles, causing
the accessories endpoint to silently return null via try?. Map these to JSON null
instead so /homekit/accessories encodes correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* test: cover non-finite HomeKit numbers

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-05-26 00:29:11 +01:00
..
2026-01-10 11:59:49 -06:00
2026-02-07 13:56:11 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-02-07 13:56:11 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-02-07 13:56:11 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00
2026-01-10 11:59:49 -06:00