diff --git a/axis/configuration.py b/axis/configuration.py index ffee0d81..1f84f31a 100644 --- a/axis/configuration.py +++ b/axis/configuration.py @@ -1,10 +1,18 @@ """Python library to enable Axis devices to integrate with Home Assistant.""" from dataclasses import KW_ONLY, dataclass +import enum from httpx import AsyncClient +class WebProtocol(enum.StrEnum): + """Web protocol for Axis configuration.""" + + HTTP = "http" + HTTPS = "https" + + @dataclass class Configuration: """Device configuration.""" @@ -15,7 +23,7 @@ class Configuration: username: str password: str port: int = 80 - web_proto: str = "http" + web_proto: str = WebProtocol.HTTP verify_ssl: bool = False @property