Skip to content

Commit

Permalink
Avoid reprocessing BluetoothLERawAdvertisement
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jul 27, 2023
1 parent 98e4c74 commit cdff7de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aioesphomeapi/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
_frozen_dataclass_decorator = partial(dataclass, frozen=True, slots=True)


from .api_pb2 import BluetoothLERawAdvertisement

Check warning on line 21 in aioesphomeapi/model.py

View workflow job for this annotation

GitHub Actions / Lint with pylint

C0413: Import "from .api_pb2 import BluetoothLERawAdvertisement" should be placed at the top of the module (wrong-import-position)

Check failure on line 21 in aioesphomeapi/model.py

View workflow job for this annotation

GitHub Actions / Check typing with mypy

Module "aioesphomeapi.api_pb2" has no attribute "BluetoothLERawAdvertisement" [attr-defined]

if TYPE_CHECKING:
from .api_pb2 import ( # type: ignore
BluetoothLEAdvertisementResponse,
BluetoothLERawAdvertisement,
BluetoothLERawAdvertisementsResponse,
HomeassistantServiceMap,
)
Expand Down

0 comments on commit cdff7de

Please sign in to comment.