Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

example: allow any str for bridge IP

zzstoatzzbfa8ec43c143
diff --git a/examples/smart_home/src/smart_home/settings.py b/examples/smart_home/src/smart_home/settings.py
index 14e8ff98c..f4f843ff9 100644
--- a/examples/smart_home/src/smart_home/settings.py
+++ b/examples/smart_home/src/smart_home/settings.py
@@ -1,11 +1,11 @@
-from pydantic import Field, IPvAnyAddress
+from pydantic import AnyHttpUrl, Field
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
- hue_bridge_ip: IPvAnyAddress = Field(default=...)
+ hue_bridge_ip: AnyHttpUrl = Field(default=...)
hue_bridge_username: str = Field(default=...)