let execute code owners in venv without installing esphome

This commit is contained in:
Tomasz Duda 2024-09-30 23:26:40 +02:00
parent 507d27e84a
commit ef6e372732

View file

@ -3,6 +3,9 @@ import argparse
from collections import defaultdict from collections import defaultdict
from pathlib import Path from pathlib import Path
import sys import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from esphome.config import get_component, get_platform from esphome.config import get_component, get_platform
from esphome.const import KEY_CORE, KEY_TARGET_FRAMEWORK from esphome.const import KEY_CORE, KEY_TARGET_FRAMEWORK