mirror of
https://github.com/openclaw/casa.git
synced 2026-06-30 20:58:00 -04:00
991cef1605
* 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>