Skip to content

Commit 342a5d8

Browse files
committed
fix(frontend): various fixes
1 parent 9c159a5 commit 342a5d8

File tree

2 files changed

+107
-14
lines changed

2 files changed

+107
-14
lines changed

src/components/device-page/AttributeEditor.1.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export class AttributeEditor extends React.Component<AttributeEditorProps, Attri
135135
data-testid="cluster-picker"
136136
label={t('cluster')}
137137
pickerType={PickerType.SINGLE}
138-
clusters={device.endpoints[endpoint].clusters.input}
138+
clusters={device.endpoints?.[endpoint]?.clusters.input ?? []}
139139
value={cluster}
140140
onChange={this.onClusterChange}
141141
/>

src/initialState.json

Lines changed: 106 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,120 @@
11
{
22
"devices": {},
33
"deviceStates": {},
4-
"touchlinkDevices": [],
5-
"touchlinkScanInProgress": false,
6-
"touchlinkIdentifyInProgress": false,
7-
"touchlinkResetInProgress": false,
8-
"networkGraph": {
9-
"links": [],
10-
"nodes": []
11-
},
12-
"networkGraphIsLoading": false,
134
"groups": [],
145
"bridgeState": "online",
15-
"bridgeDefinitions": {},
166
"bridgeInfo": {
177
"configSchema": {
188
"properties": {},
19-
"required": []
9+
"required": [],
10+
"definitions": {}
2011
},
2112
"config": {
22-
"advanced": {}
13+
"advanced": {
14+
"elapsed": false,
15+
"last_seen": "disable",
16+
"log_level": "info",
17+
"log_rotation": false,
18+
"log_console_json": false,
19+
"log_symlink_current": false,
20+
"log_output": [],
21+
"log_directory": "",
22+
"log_file": "",
23+
"log_namespaced_levels": {},
24+
"log_syslog": {},
25+
"log_debug_to_mqtt_frontend": false,
26+
"log_debug_namespace_ignore": "",
27+
"log_directories_to_keep": 0,
28+
"pan_id": 0,
29+
"ext_pan_id": [],
30+
"channel": 0,
31+
"cache_state": false,
32+
"cache_state_persistent": false,
33+
"cache_state_send_on_startup": false,
34+
"network_key": [],
35+
"timestamp_format": "",
36+
"output": "json"
37+
},
38+
"devices": {},
39+
"device_options": {},
40+
"frontend": {
41+
"enabled": true,
42+
"port": 8080,
43+
"base_url": "/"
44+
},
45+
"homeassistant": {
46+
"enabled": false,
47+
"discovery_topic": "",
48+
"status_topic": "",
49+
"experimental_event_entities": false,
50+
"legacy_action_sensor": false
51+
},
52+
"availability": {
53+
"enabled": false,
54+
"active": {
55+
"timeout": 0,
56+
"max_jitter": 0,
57+
"backoff": false,
58+
"pause_on_backoff_gt": 0
59+
},
60+
"passive": {
61+
"timeout": 0
62+
}
63+
},
64+
"mqtt": {
65+
"base_topic": "",
66+
"include_device_information": false,
67+
"force_disable_retain": false,
68+
"server": "",
69+
"maximum_packet_size": 0
70+
},
71+
"serial": {
72+
"disable_led": false
73+
},
74+
"passlist": [],
75+
"blocklist": [],
76+
"map_options": {
77+
"graphviz": {}
78+
},
79+
"ota": {
80+
"update_check_interval": 0,
81+
"disable_automatic_update_check": false,
82+
"zigbee_ota_override_index_location": null,
83+
"image_block_response_delay": null,
84+
"default_maximum_data_size": null
85+
},
86+
"groups": {}
87+
},
88+
"permit_join": false,
89+
"permit_join_end": null,
90+
"zigbee_herdsman_converters": {
91+
"version": ""
92+
},
93+
"zigbee_herdsman": {
94+
"version": ""
95+
},
96+
"device_options": {},
97+
"restart_required": false,
98+
"version": "",
99+
"coordinator": {
100+
"meta": {},
101+
"type": "",
102+
"ieee_address": ""
23103
}
24104
},
105+
"bridgeDefinitions": {
106+
"clusters": {},
107+
"custom_clusters": {}
108+
},
109+
"touchlinkDevices": [],
110+
"touchlinkScanInProgress": false,
111+
"touchlinkIdentifyInProgress": false,
112+
"touchlinkResetInProgress": false,
113+
"networkGraph": {
114+
"links": [],
115+
"nodes": []
116+
},
117+
"networkGraphIsLoading": false,
25118
"logs": [],
26119
"logsLimit": 100,
27120
"extensions": [],
@@ -31,4 +124,4 @@
31124
"availability": {},
32125
"preparingBackup": false,
33126
"backup": ""
34-
}
127+
}

0 commit comments

Comments
 (0)