From cc807b4d597daaaadc92df4a93c6e30da4f570c6 Mon Sep 17 00:00:00 2001 From: Joakim Plate Date: Fri, 3 Jun 2022 22:05:37 +0200 Subject: [PATCH] fjaraskupan: Don't filter anything in backend (#72988) --- homeassistant/components/fjaraskupan/__init__.py | 4 ++-- homeassistant/components/fjaraskupan/config_flow.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/fjaraskupan/__init__.py b/homeassistant/components/fjaraskupan/__init__.py index ec4528bc079..4c4f19403a6 100644 --- a/homeassistant/components/fjaraskupan/__init__.py +++ b/homeassistant/components/fjaraskupan/__init__.py @@ -9,7 +9,7 @@ import logging from bleak import BleakScanner from bleak.backends.device import BLEDevice from bleak.backends.scanner import AdvertisementData -from fjaraskupan import DEVICE_NAME, Device, State, device_filter +from fjaraskupan import Device, State, device_filter from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform @@ -90,7 +90,7 @@ class EntryState: async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up Fjäråskupan from a config entry.""" - scanner = BleakScanner(filters={"Pattern": DEVICE_NAME, "DuplicateData": True}) + scanner = BleakScanner(filters={"DuplicateData": True}) state = EntryState(scanner, {}) hass.data.setdefault(DOMAIN, {}) diff --git a/homeassistant/components/fjaraskupan/config_flow.py b/homeassistant/components/fjaraskupan/config_flow.py index 3af34c0eef6..ffac366500b 100644 --- a/homeassistant/components/fjaraskupan/config_flow.py +++ b/homeassistant/components/fjaraskupan/config_flow.py @@ -7,7 +7,7 @@ import async_timeout from bleak import BleakScanner from bleak.backends.device import BLEDevice from bleak.backends.scanner import AdvertisementData -from fjaraskupan import DEVICE_NAME, device_filter +from fjaraskupan import device_filter from homeassistant.core import HomeAssistant from homeassistant.helpers.config_entry_flow import register_discovery_flow @@ -28,7 +28,7 @@ async def _async_has_devices(hass: HomeAssistant) -> bool: async with BleakScanner( detection_callback=detection, - filters={"Pattern": DEVICE_NAME, "DuplicateData": True}, + filters={"DuplicateData": True}, ): try: async with async_timeout.timeout(CONST_WAIT_TIME):