Skip to content

Commit

Permalink
remove paring logic (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuezas authored Feb 8, 2023
1 parent a2b2812 commit 598868b
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,6 @@ async def async_get_connection(self):

if self._conn.is_connected:
_LOGGER.debug("[%s] Connected", self._name)
try:
# only works with old firmwares w/o pairing pin.
paired = await self._conn.pair(
1 # 1 = pairing with no protection https://bleak.readthedocs.io/en/latest/backends/windows.html?highlight=pair#bleak.backends.winrt.client.BleakClientWinRT.pair
)
_LOGGER.debug("[%s] Paired: %s ", self._name, paired)
except Exception as ex:
_LOGGER.warn("[%s] Failed paring: %s ", self._name, ex)
else:
raise BackendException("Can't connect")
return self._conn
Expand Down

0 comments on commit 598868b

Please sign in to comment.