Skip to content

Commit

Permalink
Process code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede committed Feb 29, 2024
1 parent 0a32af9 commit ad82e69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions homeassistant/helpers/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ def report(
_LOGGER.warning(msg, stack_info=True)
return

if not log_custom_component_only or (
integration_frame.custom_integration and log_custom_component_only
):
if not log_custom_component_only or integration_frame.custom_integration:
_report_integration(what, integration_frame, level)


Expand Down
1 change: 1 addition & 0 deletions homeassistant/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,6 +1247,7 @@ def __getattr__(self, comp_name: str) -> ModuleWrapper:
if component is None:
raise ImportError(f"Unable to load {comp_name}")

# Local import to avoid circular dependencies
from .helpers.frame import report # pylint: disable=import-outside-toplevel

report(
Expand Down

0 comments on commit ad82e69

Please sign in to comment.