json.py 292 B

1234567891011
  1. """JSON utils."""
  2. try:
  3. # Could be removed after 2022.06 is the min version
  4. # But in case Home Assistant changes, keep this try/except here...
  5. from homeassistant.helpers.json import json_loads
  6. except ImportError:
  7. from json import loads as json_loads
  8. __all__ = ["json_loads"]