16 lines
510 B
C#
16 lines
510 B
C#
namespace HomeAssistant.McpServer.Settings;
|
|
|
|
public sealed class HomeAssistantSettings
|
|
{
|
|
public const string SectionName = "HomeAssistant";
|
|
public const int DefaultPort = 8123;
|
|
public const int DefaultTimeoutSeconds = 30;
|
|
|
|
public string Host { get; set; } = string.Empty;
|
|
public int Port { get; set; } = DefaultPort;
|
|
public string Token { get; set; } = string.Empty;
|
|
public bool Ssl { get; set; }
|
|
|
|
public Uri BaseUrl => new UriBuilder(Ssl ? "https" : "http", Host, Port).Uri;
|
|
}
|