From 7d5794cfb1b1d39e95c9fcab53a6b1851a0fc7df Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Mon, 14 Nov 2022 16:18:11 +0100 Subject: [PATCH] Remove unused function from hassfest model (#82073) * Remove unused function from hassfest model * Update model.py Co-authored-by: J. Nick Koston --- script/hassfest/model.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/script/hassfest/model.py b/script/hassfest/model.py index 175885a53ec..6b500daa9b3 100644 --- a/script/hassfest/model.py +++ b/script/hassfest/model.py @@ -1,10 +1,8 @@ """Models for manifest validator.""" from __future__ import annotations -import importlib import json import pathlib -from types import ModuleType from typing import Any import attr @@ -227,10 +225,3 @@ class Integration: return self.manifest = manifest - - def import_pkg(self, platform: str | None = None) -> ModuleType: - """Import the Python file.""" - pkg = f"homeassistant.components.{self.domain}" - if platform is not None: - pkg += f".{platform}" - return importlib.import_module(pkg)