MCPcopy
hub / github.com/Koenkk/zigbee2mqtt / setOnboarding

Function setOnboarding

lib/util/settings.ts:190–204  ·  view source on GitHub ↗
(value: boolean)

Source from the content-addressed store, hash-verified

188}
189
190export function setOnboarding(value: boolean): void {
191 const settings = getPersistedSettings();
192
193 if (value) {
194 if (!settings.onboarding) {
195 settings.onboarding = value;
196
197 write();
198 }
199 } else if (settings.onboarding) {
200 delete settings.onboarding;
201
202 write();
203 }
204}
205
206export function write(): void {
207 const settings = getPersistedSettings();

Callers

nothing calls this directly

Calls 2

getPersistedSettingsFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected