mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
parent
08c5c6ca1c
commit
21b842cf9c
@ -11,6 +11,7 @@ from collections.abc import Callable
|
|||||||
from contextlib import suppress
|
from contextlib import suppress
|
||||||
import functools as ft
|
import functools as ft
|
||||||
import importlib
|
import importlib
|
||||||
|
import json
|
||||||
import logging
|
import logging
|
||||||
import pathlib
|
import pathlib
|
||||||
import sys
|
import sys
|
||||||
@ -29,7 +30,6 @@ from .generated.mqtt import MQTT
|
|||||||
from .generated.ssdp import SSDP
|
from .generated.ssdp import SSDP
|
||||||
from .generated.usb import USB
|
from .generated.usb import USB
|
||||||
from .generated.zeroconf import HOMEKIT, ZEROCONF
|
from .generated.zeroconf import HOMEKIT, ZEROCONF
|
||||||
from .helpers.json import JSON_DECODE_EXCEPTIONS, json_loads
|
|
||||||
from .util.async_ import gather_with_concurrency
|
from .util.async_ import gather_with_concurrency
|
||||||
|
|
||||||
# Typing imports that create a circular dependency
|
# Typing imports that create a circular dependency
|
||||||
@ -366,8 +366,8 @@ class Integration:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
manifest = json_loads(manifest_path.read_text())
|
manifest = json.loads(manifest_path.read_text())
|
||||||
except JSON_DECODE_EXCEPTIONS as err:
|
except ValueError as err:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"Error parsing manifest.json file at %s: %s", manifest_path, err
|
"Error parsing manifest.json file at %s: %s", manifest_path, err
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user