Skip to content

Commit 6797426

Browse files
authored
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
1 parent 17eaaa5 commit 6797426

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

blog/2023-02-15-json.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
author: epenet
3+
authorURL: https://github.com/epenet
4+
title: "Refactor json helper and utility"
5+
---
6+
7+
As of Home Assistant Core 2023.3, some constants and functions have been moved
8+
between `homeassistant.helpers.json` and `homeassistant.util.json` :
9+
10+
- `save_json` and `find_paths_unserializable_data` functions should now be
11+
imported from `homeassistant.helpers.json`
12+
- `json_loads` function should now be imported from `homeassistant.util.json`
13+
- `JSON_ENCODE_EXCEPTIONS` and `JSON_DECODE_EXCEPTIONS` constants should now
14+
be imported from `homeassistant.util.json`

0 commit comments

Comments
 (0)