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

Function removeGroup

lib/util/settings.ts:631–638  ·  view source on GitHub ↗
(IDorName: string | number)

Source from the content-addressed store, hash-verified

629}
630
631export function removeGroup(IDorName: string | number): void {
632 const groupID = getGroupThrowIfNotExists(IDorName.toString()).ID;
633 const settings = getPersistedSettings();
634
635 // biome-ignore lint/style/noNonNullAssertion: throwing above if not valid
636 delete settings.groups![groupID];
637 write();
638}
639
640export function changeEntityOptions(IDorName: string, newOptions: KeyValue): boolean {
641 const settings = getPersistedSettings();

Callers

nothing calls this directly

Calls 3

getGroupThrowIfNotExistsFunction · 0.85
getPersistedSettingsFunction · 0.85
writeFunction · 0.70

Tested by

no test coverage detected