Skip to content

Commit

Permalink
fix: remove bleak_retry_connector
Browse files Browse the repository at this point in the history
  • Loading branch information
EuleMitKeule committed Jan 22, 2024
1 parent dbef55a commit 867844a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/eq3btsmart/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from typing import Any

from bleak.backends.device import BLEDevice
from bleak_retry_connector import NO_RSSI_VALUE
from eq3btsmart import Thermostat
from eq3btsmart.thermostat_config import ThermostatConfig
from homeassistant.components import bluetooth
Expand Down Expand Up @@ -140,8 +139,7 @@ async def async_get_device(hass: HomeAssistant, config: Eq3Config) -> BLEDevice:
bluetooth.async_scanner_devices_by_address(
hass=hass, address=config.mac_address, connectable=True
),
key=lambda device_advertisement_data: device_advertisement_data.advertisement.rssi
or NO_RSSI_VALUE,
key=lambda device_advertisement_data: device_advertisement_data.advertisement.rssi,
reverse=True,
)
if config.adapter == Adapter.LOCAL:
Expand Down

0 comments on commit 867844a

Please sign in to comment.