mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 05:46:30 +00:00
Refactor json helper and utility (#1682)
* Create 2023-02-15-json * Update 2023-02-15-json * Rename 2023-02-15-json to 2023-02-15-json.md
This commit is contained in:
parent
17eaaa515c
commit
67974267fa
14
blog/2023-02-15-json.md
Normal file
14
blog/2023-02-15-json.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
author: epenet
|
||||
authorURL: https://github.com/epenet
|
||||
title: "Refactor json helper and utility"
|
||||
---
|
||||
|
||||
As of Home Assistant Core 2023.3, some constants and functions have been moved
|
||||
between `homeassistant.helpers.json` and `homeassistant.util.json` :
|
||||
|
||||
- `save_json` and `find_paths_unserializable_data` functions should now be
|
||||
imported from `homeassistant.helpers.json`
|
||||
- `json_loads` function should now be imported from `homeassistant.util.json`
|
||||
- `JSON_ENCODE_EXCEPTIONS` and `JSON_DECODE_EXCEPTIONS` constants should now
|
||||
be imported from `homeassistant.util.json`
|
Loading…
x
Reference in New Issue
Block a user