We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fae3b9d commit 26a3bbdCopy full SHA for 26a3bbd
1 file changed
tion_btle/tion.py
@@ -250,6 +250,7 @@ async def set(self, new_settings=None) -> None:
250
_LOGGER.debug("Will write %s", encoded_request)
251
await self._send_request(encoded_request)
252
self._set_internal_state_from_request(new_settings)
253
+ await self._get_data_from_breezer()
254
finally:
255
await self.disconnect()
256
@@ -508,6 +509,8 @@ async def disconnect(self):
508
509
if self.__connections_count <= 0:
510
await self._disconnect()
511
self.have_breezer_state = False
512
+ while self._delegation.haveNewData:
513
+ _LOGGER.debug(f"Cleaning data in disconnect: {self._delegation.data=}")
514
515
@property
516
@abc.abstractmethod
0 commit comments