@digital-alchemy/hass 25.3.1 → 25.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,12 +1,26 @@
|
|
|
1
|
+
import { LiteralUnion } from "type-fest";
|
|
1
2
|
import { ALL_DOMAINS, TPlatformId } from "../../user.mts";
|
|
3
|
+
import { ColorMode } from "../features.mts";
|
|
2
4
|
export interface ServiceListSelectorTarget {
|
|
3
5
|
domain?: ALL_DOMAINS;
|
|
4
6
|
integration?: TPlatformId;
|
|
5
7
|
multiple?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export interface ServiceListSelector {
|
|
10
|
+
addon?: null;
|
|
11
|
+
backup_location?: null;
|
|
8
12
|
boolean?: null;
|
|
13
|
+
color_rgb?: null;
|
|
14
|
+
color_temp?: {
|
|
15
|
+
unit: "kelvin";
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
conversation_agent?: null;
|
|
20
|
+
date?: null;
|
|
21
|
+
datetime?: null;
|
|
9
22
|
entity?: ServiceListSelectorTarget;
|
|
23
|
+
icon?: null;
|
|
10
24
|
number?: {
|
|
11
25
|
max: number;
|
|
12
26
|
min: number;
|
|
@@ -16,16 +30,28 @@ export interface ServiceListSelector {
|
|
|
16
30
|
};
|
|
17
31
|
object?: null;
|
|
18
32
|
select?: {
|
|
33
|
+
custom_value?: boolean;
|
|
34
|
+
multiple?: boolean;
|
|
19
35
|
options: Record<"label" | "value", string>[] | string[];
|
|
20
36
|
};
|
|
21
|
-
text?: null
|
|
37
|
+
text?: null | {
|
|
38
|
+
type: "password";
|
|
39
|
+
};
|
|
40
|
+
theme?: {
|
|
41
|
+
include_defaults?: boolean;
|
|
42
|
+
};
|
|
22
43
|
time?: null;
|
|
23
44
|
}
|
|
45
|
+
export interface ServiceListFilter {
|
|
46
|
+
supported_features?: number[];
|
|
47
|
+
supported_color_modes?: LiteralUnion<`${ColorMode}`, string>[];
|
|
48
|
+
}
|
|
24
49
|
export interface ServiceListFieldDescription {
|
|
25
50
|
advanced?: boolean;
|
|
26
51
|
default?: unknown;
|
|
27
52
|
description?: string;
|
|
28
53
|
example?: string | number;
|
|
54
|
+
filter?: ServiceListFilter;
|
|
29
55
|
name?: string;
|
|
30
56
|
required?: boolean;
|
|
31
57
|
selector?: ServiceListSelector;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "@digital-alchemy/hass",
|
|
4
4
|
"repository": "https://github.com/Digital-Alchemy-TS/hass",
|
|
5
5
|
"homepage": "https://docs.digital-alchemy.app",
|
|
6
|
-
"version": "25.3.
|
|
6
|
+
"version": "25.3.2",
|
|
7
7
|
"description": "Typescript APIs for Home Assistant. Includes rest & websocket bindings",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "rm -rf dist/; tsc",
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"@types/node-cron": "^3.0.11",
|
|
71
71
|
"@types/semver": "^7.5.8",
|
|
72
72
|
"@types/ws": "^8.18.0",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
74
|
-
"@typescript-eslint/parser": "8.
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "8.27.0",
|
|
74
|
+
"@typescript-eslint/parser": "8.27.0",
|
|
75
75
|
"dayjs": "^1.11.13",
|
|
76
76
|
"dotenv": "^16.4.7",
|
|
77
|
-
"eslint": "9.
|
|
77
|
+
"eslint": "9.23.0",
|
|
78
78
|
"eslint-config-prettier": "10.1.1",
|
|
79
79
|
"eslint-plugin-import": "^2.31.0",
|
|
80
80
|
"eslint-plugin-jsonc": "^2.19.1",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
85
85
|
"eslint-plugin-sonarjs": "^3.0.2",
|
|
86
86
|
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
87
|
-
"eslint-plugin-unicorn": "^
|
|
87
|
+
"eslint-plugin-unicorn": "^58.0.0",
|
|
88
88
|
"node-cron": "^3.0.3",
|
|
89
89
|
"prettier": "^3.5.3",
|
|
90
90
|
"semver": "^7.7.1",
|
|
@@ -1,13 +1,25 @@
|
|
|
1
|
+
import { LiteralUnion } from "type-fest";
|
|
2
|
+
|
|
1
3
|
import { ALL_DOMAINS, TPlatformId } from "../../user.mts";
|
|
4
|
+
import { ColorMode } from "../features.mts";
|
|
2
5
|
|
|
3
6
|
export interface ServiceListSelectorTarget {
|
|
4
7
|
domain?: ALL_DOMAINS;
|
|
5
8
|
integration?: TPlatformId;
|
|
6
9
|
multiple?: boolean;
|
|
7
10
|
}
|
|
11
|
+
|
|
8
12
|
export interface ServiceListSelector {
|
|
13
|
+
addon?: null;
|
|
14
|
+
backup_location?: null;
|
|
9
15
|
boolean?: null;
|
|
16
|
+
color_rgb?: null;
|
|
17
|
+
color_temp?: { unit: "kelvin"; min: number; max: number };
|
|
18
|
+
conversation_agent?: null;
|
|
19
|
+
date?: null;
|
|
20
|
+
datetime?: null;
|
|
10
21
|
entity?: ServiceListSelectorTarget;
|
|
22
|
+
icon?: null;
|
|
11
23
|
number?: {
|
|
12
24
|
max: number;
|
|
13
25
|
min: number;
|
|
@@ -17,17 +29,26 @@ export interface ServiceListSelector {
|
|
|
17
29
|
};
|
|
18
30
|
object?: null;
|
|
19
31
|
select?: {
|
|
32
|
+
custom_value?: boolean;
|
|
33
|
+
multiple?: boolean;
|
|
20
34
|
options: Record<"label" | "value", string>[] | string[];
|
|
21
35
|
};
|
|
22
|
-
text?: null;
|
|
36
|
+
text?: null | { type: "password" };
|
|
37
|
+
theme?: { include_defaults?: boolean };
|
|
23
38
|
time?: null;
|
|
24
39
|
}
|
|
25
40
|
|
|
41
|
+
export interface ServiceListFilter {
|
|
42
|
+
supported_features?: number[];
|
|
43
|
+
supported_color_modes?: LiteralUnion<`${ColorMode}`, string>[];
|
|
44
|
+
}
|
|
45
|
+
|
|
26
46
|
export interface ServiceListFieldDescription {
|
|
27
47
|
advanced?: boolean;
|
|
28
48
|
default?: unknown;
|
|
29
49
|
description?: string;
|
|
30
50
|
example?: string | number;
|
|
51
|
+
filter?: ServiceListFilter;
|
|
31
52
|
name?: string;
|
|
32
53
|
required?: boolean;
|
|
33
54
|
selector?: ServiceListSelector;
|