mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-01-18 15:45:38 +00:00
Allow empty Thingsplex credentials (#3)
This commit is contained in:
@@ -208,6 +208,7 @@ export function haPublishDevice(parameters: {
|
||||
deviceInclusionReport: InclusionReport | undefined;
|
||||
thingsplexUsername: string;
|
||||
thingsplexPassword: string;
|
||||
thingsplexAllowEmpty: boolean;
|
||||
}): { commandHandlers: CommandHandlers } {
|
||||
const components: { [key: string]: HaMqttComponent } = {};
|
||||
const handlers: CommandHandlers = {};
|
||||
@@ -261,8 +262,8 @@ export function haPublishDevice(parameters: {
|
||||
}
|
||||
|
||||
if (
|
||||
parameters.thingsplexUsername &&
|
||||
parameters.thingsplexPassword &&
|
||||
(parameters.thingsplexAllowEmpty ||
|
||||
(parameters.thingsplexUsername && parameters.thingsplexPassword)) &&
|
||||
parameters.vinculumDeviceData.fimp?.address &&
|
||||
parameters.vinculumDeviceData.fimp?.adapter
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user