From 1f49f7e5ce13d323bde623e5254ecc0e89c989ef Mon Sep 17 00:00:00 2001 From: Jackie Yang Date: Thu, 4 Jan 2024 02:29:33 -0800 Subject: [PATCH] Update config_flow.py to conform to HA 2024.1.0 --- custom_components/yeelight_bt/config_flow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/yeelight_bt/config_flow.py b/custom_components/yeelight_bt/config_flow.py index f5b841d..7d6f555 100644 --- a/custom_components/yeelight_bt/config_flow.py +++ b/custom_components/yeelight_bt/config_flow.py @@ -10,8 +10,8 @@ BluetoothServiceInfoBleak, async_get_scanner, ) -from homeassistant.components.bluetooth.models import BluetoothScanningMode -from homeassistant.components.bluetooth.scanner import create_bleak_scanner +from homeassistant.components.bluetooth import BluetoothScanningMode +from habluetooth.scanner import create_bleak_scanner from homeassistant.const import CONF_MAC, CONF_NAME from homeassistant.data_entry_flow import FlowResult from homeassistant.helpers import device_registry as dr