mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-11-18 09:09:03 +00:00
Fix demoMode reference
This commit is contained in:
@@ -209,6 +209,7 @@ const serviceHandlers: {
|
||||
|
||||
export function haPublishDevice(parameters: {
|
||||
hubId: string;
|
||||
demoMode: boolean;
|
||||
vinculumDeviceData: VinculumPd7Device;
|
||||
deviceInclusionReport: InclusionReport | undefined;
|
||||
}): { commandHandlers: CommandHandlers } {
|
||||
@@ -249,7 +250,7 @@ export function haPublishDevice(parameters: {
|
||||
Object.assign(handlers, result.commandHandlers);
|
||||
}
|
||||
|
||||
if (demoMode) {
|
||||
if (parameters.demoMode) {
|
||||
// Apply optimistic override
|
||||
for (const component of Object.values(components)) {
|
||||
if ((component as any).optimistic === false) {
|
||||
|
||||
@@ -144,6 +144,7 @@ import { delay } from './utils';
|
||||
|
||||
const result = haPublishDevice({
|
||||
hubId,
|
||||
demoMode,
|
||||
vinculumDeviceData,
|
||||
deviceInclusionReport,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user