Skip to content

Commit

Permalink
Update pydantic and versions in requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdKuijpers committed Oct 24, 2023
1 parent a138299 commit 1eeeb6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 7 additions & 5 deletions atagmqtt/configuration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""Configuration module."""
import os
from typing import Optional

from pydantic import BaseSettings, Field
from pydantic import Field
from pydantic_settings import BaseSettings
import homie
import atagmqtt
from .__init__ import __version__, NAME
Expand All @@ -17,13 +19,13 @@ class Settings(BaseSettings):
atag_setup_timeout: int = Field(30, env='ATAG_SETUP_TIMEOUT')

atag_update_interval: int = Field(30, env='ATAG_UPDATE_INTERVAL')
atag_host: str = Field(None, env='ATAG_HOST')
atag_host: Optional[str] = Field(None, env='ATAG_HOST')
atag_paired: bool = Field(False, env='ATAG_PAIRED')

mqtt_host: str = Field(None, env='MQTT_HOST')
mqtt_host: Optional[str] = Field(None, env='MQTT_HOST')
mqtt_port: int = Field(1883, env='MQTT_PORT')
mqtt_username: str = Field(None, env='MQTT_USERNAME')
mqtt_password: str = Field(None, env='MQTT_PASSWORD')
mqtt_username: Optional[str] = Field(None, env='MQTT_USERNAME')
mqtt_password: Optional[str] = Field(None, env='MQTT_PASSWORD')
mqtt_client: str = Field(f"{NAME}-{HOSTNAME}", env='MQTT_CLIENT')

homie_update_interval: int = 60
Expand Down
9 changes: 5 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
aiohttp
Homie4
pydantic
pyatag
aiohttp==3.8.6
Homie4==0.4.0
pydantic==2.4.2
pydantic-settings==2.0.3
pyatag==0.3.5.3

0 comments on commit 1eeeb6c

Please sign in to comment.