From 0f81d1d14ad92dfaa012dee173e664d4cae4fd6f Mon Sep 17 00:00:00 2001
From: "J. Nick Koston" <nick@koston.org>
Date: Tue, 19 Jul 2022 21:14:31 -0500
Subject: [PATCH] Drop RSSI update workaround from bluetooth on linux (#75467)

It turns out we do not need these are we can check the discovered
device list to see if bluez is still seeing the device
---
 homeassistant/components/bluetooth/__init__.py | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/homeassistant/components/bluetooth/__init__.py b/homeassistant/components/bluetooth/__init__.py
index 8a1897c5ec2..33b2da7523e 100644
--- a/homeassistant/components/bluetooth/__init__.py
+++ b/homeassistant/components/bluetooth/__init__.py
@@ -6,7 +6,6 @@ from dataclasses import dataclass
 from enum import Enum
 import fnmatch
 import logging
-import platform
 from typing import Final, TypedDict, Union
 
 from bleak import BleakError
@@ -217,20 +216,6 @@ def _ble_device_matches(
     return True
 
 
-@hass_callback
-def async_enable_rssi_updates() -> None:
-    """Bleak filters out RSSI updates by default on linux only."""
-    # We want RSSI updates
-    if platform.system() == "Linux":
-        from bleak.backends.bluezdbus import (  # pylint: disable=import-outside-toplevel
-            scanner,
-        )
-
-        scanner._ADVERTISING_DATA_PROPERTIES.add(  # pylint: disable=protected-access
-            "RSSI"
-        )
-
-
 class BluetoothManager:
     """Manage Bluetooth."""
 
@@ -265,7 +250,6 @@ class BluetoothManager:
                 ex,
             )
             return
-        async_enable_rssi_updates()
         install_multiple_bleak_catcher(self.scanner)
         # We have to start it right away as some integrations might
         # need it straight away.
-- 
GitLab