mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-09-13 07:37:09 +00:00
Fix demoMode reference
This commit is contained in:
parent
cf6914ed49
commit
3cfb31d666
@ -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"
|
||||
|
@ -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,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user