mirror of
https://github.com/esphome/esphome.git
synced 2025-07-29 06:36:45 +00:00
Silence protobuf compatibility warnings when importing aioesphomeapi (#9236)
This commit is contained in:
parent
094bf19ec4
commit
3f65cee17c
@ -4,7 +4,13 @@ import asyncio
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Any
|
from typing import TYPE_CHECKING, Any
|
||||||
|
import warnings
|
||||||
|
|
||||||
|
# Suppress protobuf version warnings
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.filterwarnings(
|
||||||
|
"ignore", category=UserWarning, message=".*Protobuf gencode version.*"
|
||||||
|
)
|
||||||
from aioesphomeapi import APIClient, parse_log_message
|
from aioesphomeapi import APIClient, parse_log_message
|
||||||
from aioesphomeapi.log_runner import async_run
|
from aioesphomeapi.log_runner import async_run
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user