Skip to content

Commit 0bbd1ab

Browse files
committed
Fix MyPy error
1 parent 6be70ef commit 0bbd1ab

File tree

1 file changed

+2
-1
lines changed
  • homeassistant/components/google_generative_ai_conversation

1 file changed

+2
-1
lines changed

homeassistant/components/google_generative_ai_conversation/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from pathlib import Path
77

88
from google import genai # type: ignore[attr-defined]
9+
from google.genai import Client
910
from google.genai.errors import APIError, ClientError
1011
from requests.exceptions import Timeout
1112
import voluptuous as vol
@@ -139,7 +140,7 @@ async def async_setup_entry(
139140
"""Set up Google Generative AI Conversation from a config entry."""
140141

141142
try:
142-
client: genai.Client | None = None
143+
client: Client | None = None
143144

144145
def init_client():
145146
nonlocal client

0 commit comments

Comments
 (0)