mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-06-26 10:35:00 +02:00
Update aioesphomeapi/_frame_helper/base.py
This commit is contained in:
parent
36b765c5d7
commit
78854d897e
|
@ -66,7 +66,6 @@ class APIFrameHelper:
|
||||||
self._log_name = log_name
|
self._log_name = log_name
|
||||||
|
|
||||||
def _set_ready_future_exception(self, exc: Exception | type[Exception]) -> None:
|
def _set_ready_future_exception(self, exc: Exception | type[Exception]) -> None:
|
||||||
"""Set the ready future to an exception."""
|
|
||||||
if not self.ready_future.done():
|
if not self.ready_future.done():
|
||||||
self.ready_future.set_exception(exc)
|
self.ready_future.set_exception(exc)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user