mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 10:17:51 +00:00
Remove unused function from hassfest model (#82073)
* Remove unused function from hassfest model * Update model.py Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
fa9a51e528
commit
7d5794cfb1
@ -1,10 +1,8 @@
|
|||||||
"""Models for manifest validator."""
|
"""Models for manifest validator."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import importlib
|
|
||||||
import json
|
import json
|
||||||
import pathlib
|
import pathlib
|
||||||
from types import ModuleType
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import attr
|
import attr
|
||||||
@ -227,10 +225,3 @@ class Integration:
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.manifest = manifest
|
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)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user