move get_type_by_bt_name into lib

This commit is contained in:
Patrick762 committed 2024-02-18 14:35:16 +01:00
1 parent caac9330b4
commit 564a971d7c
4 files changed
+10 -24

No files matched your search

+3 -1
View File
@@ -4,6 +4,7 @@ from __future__ import annotations
import re
import logging
from typing import Any
import voluptuous as vol
@@ -16,7 +17,8 @@ from homeassistant.const import CONF_ADDRESS, CONF_TYPE, CONF_NAME
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import selector
from . import get_type_by_bt_name
from .bluetti_bt_lib.utils.device_builder import get_type_by_bt_name
from .const import (
CONF_MAX_RETRIES,
CONF_PERSISTENT_CONN,