We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b228fb8 commit a811e1dCopy full SHA for a811e1d
1 file changed
tion_btle/tion.py
@@ -564,3 +564,10 @@ async def _get_data_from_breezer(self) -> bytearray:
564
raise TionException("_get_data_from_breezer", "Could not get breezer state")
565
566
return result
567
+
568
+ @final
569
+ def update_btle_device(self, new_device: str | BLEDevice):
570
+ if new_device is None:
571
+ _LOGGER.info(f"Skipping update due to {new_device= }!")
572
+ return
573
+ self._btle = BleakClient(new_device)
0 commit comments