Fixed: mqtt crash if no user or password defined

Changed: UserInterface.exe removed from hass-workstation due it is not updated on changes and use old state of sensors
pull/9/head
Pavel 4 years ago
parent b2e42f9660
commit de1cc926f7

@ -5,8 +5,30 @@ namespace hass_workstation_service.Data
{
public class ConfiguredMqttBroker
{
private string username;
private string password;
public string Host { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public string Username
{
get
{
if (username != null) return username;
return "";
}
set => username = value;
}
public string Password
{
get
{
if (password != null) return password;
return "";
}
set => password = value;
}
}
}

@ -28,12 +28,6 @@
<None Remove="UserInterface.pdb" />
</ItemGroup>
<ItemGroup>
<Content Include="UserInterface.exe">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="appsettings.json">
<CopyToOutputDirectory>Never</CopyToOutputDirectory>

Loading…
Cancel
Save