Fix demoMode reference

This commit is contained in:
Adrian Jagielak 2025-07-24 16:51:19 +02:00
parent cf6914ed49
commit 3cfb31d666
No known key found for this signature in database
GPG Key ID: 0818CF7AF6C62BFB
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Futurehome
version: "0.0.36"
version: "0.0.37"
slug: futurehome
description: Local Futurehome Smarthub integration
url: "https://github.com/adrianjagielak/home-assistant-futurehome"

View File

@ -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) {

View File

@ -144,6 +144,7 @@ import { delay } from './utils';
const result = haPublishDevice({
hubId,
demoMode,
vinculumDeviceData,
deviceInclusionReport,
});