mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2025-09-13 15:47:08 +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
|
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
|
||||||
name: Futurehome
|
name: Futurehome
|
||||||
version: "0.0.36"
|
version: "0.0.37"
|
||||||
slug: futurehome
|
slug: futurehome
|
||||||
description: Local Futurehome Smarthub integration
|
description: Local Futurehome Smarthub integration
|
||||||
url: "https://github.com/adrianjagielak/home-assistant-futurehome"
|
url: "https://github.com/adrianjagielak/home-assistant-futurehome"
|
||||||
|
@ -209,6 +209,7 @@ const serviceHandlers: {
|
|||||||
|
|
||||||
export function haPublishDevice(parameters: {
|
export function haPublishDevice(parameters: {
|
||||||
hubId: string;
|
hubId: string;
|
||||||
|
demoMode: boolean;
|
||||||
vinculumDeviceData: VinculumPd7Device;
|
vinculumDeviceData: VinculumPd7Device;
|
||||||
deviceInclusionReport: InclusionReport | undefined;
|
deviceInclusionReport: InclusionReport | undefined;
|
||||||
}): { commandHandlers: CommandHandlers } {
|
}): { commandHandlers: CommandHandlers } {
|
||||||
@ -249,7 +250,7 @@ export function haPublishDevice(parameters: {
|
|||||||
Object.assign(handlers, result.commandHandlers);
|
Object.assign(handlers, result.commandHandlers);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (demoMode) {
|
if (parameters.demoMode) {
|
||||||
// Apply optimistic override
|
// Apply optimistic override
|
||||||
for (const component of Object.values(components)) {
|
for (const component of Object.values(components)) {
|
||||||
if ((component as any).optimistic === false) {
|
if ((component as any).optimistic === false) {
|
||||||
|
@ -144,6 +144,7 @@ import { delay } from './utils';
|
|||||||
|
|
||||||
const result = haPublishDevice({
|
const result = haPublishDevice({
|
||||||
hubId,
|
hubId,
|
||||||
|
demoMode,
|
||||||
vinculumDeviceData,
|
vinculumDeviceData,
|
||||||
deviceInclusionReport,
|
deviceInclusionReport,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user