initial commit
This commit is contained in:
10
custom_components/hacs/utils/json.py
Normal file
10
custom_components/hacs/utils/json.py
Normal file
@@ -0,0 +1,10 @@
|
||||
"""JSON utils."""
|
||||
|
||||
try:
|
||||
# Could be removed after 2022.06 is the min version
|
||||
# But in case Home Assistant changes, keep this try/except here...
|
||||
from homeassistant.helpers.json import json_loads
|
||||
except ImportError:
|
||||
from json import loads as json_loads
|
||||
|
||||
__all__ = ["json_loads"]
|
||||
Reference in New Issue
Block a user