feat: Allow user generated notifications (#2401)

This commit is contained in:
Dermot Duffy
2026-03-07 20:47:24 -08:00
committed by GitHub
parent 1d81e03b04
commit 24c6b98948
53 changed files with 939 additions and 471 deletions
+22
View File
@@ -0,0 +1,22 @@
import { describe, expect, it } from 'vitest';
import { iconSchema } from '../../../../src/config/schema/common/icon';
describe('iconSchema', () => {
it('should parse icon with all fields', () => {
expect(
iconSchema.parse({
icon: 'mdi:star',
entity: 'light.office',
stateColor: true,
}),
).toEqual({
icon: 'mdi:star',
entity: 'light.office',
stateColor: true,
});
});
it('should parse empty object', () => {
expect(iconSchema.parse({})).toEqual({});
});
});