Skip to content

Commit

Permalink
Partially revert "Switch loader to use json helper (home-assistant#73872
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Jun 27, 2022
1 parent 08c5c6c commit 21b842c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/loader.py
Expand Up @@ -11,6 +11,7 @@
from contextlib import suppress
import functools as ft
import importlib
import json
import logging
import pathlib
import sys
Expand All @@ -29,7 +30,6 @@
from .generated.ssdp import SSDP
from .generated.usb import USB
from .generated.zeroconf import HOMEKIT, ZEROCONF
from .helpers.json import JSON_DECODE_EXCEPTIONS, json_loads
from .util.async_ import gather_with_concurrency

# Typing imports that create a circular dependency
Expand Down Expand Up @@ -366,8 +366,8 @@ def resolve_from_root(
continue

try:
manifest = json_loads(manifest_path.read_text())
except JSON_DECODE_EXCEPTIONS as err:
manifest = json.loads(manifest_path.read_text())
except ValueError as err:
_LOGGER.error(
"Error parsing manifest.json file at %s: %s", manifest_path, err
)
Expand Down

0 comments on commit 21b842c

Please sign in to comment.