mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Silence protobuf compatibility warnings when importing aioesphomeapi (#9236)
This commit is contained in:
@@ -4,7 +4,13 @@ import asyncio
|
||||
from datetime import datetime
|
||||
import logging
|
||||
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.log_runner import async_run
|
||||
|
||||
|
Reference in New Issue
Block a user