File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ if (fs.existsSync(commitUserFile)) {
49
49
commitUserLookup = JSON . parse ( fs . readFileSync ( commitUserFile , 'utf8' ) ) ;
50
50
}
51
51
52
- const whiteLabels = zhc . definitions . filter ( ( d ) => d . whiteLabel ) . flatMap ( ( d ) => d . whiteLabel ) ;
52
+ const definitions = require ( 'zigbee-herdsman-converters/devices/index' ) . default . map ( ( d ) => zhc . prepareDefinition ( d ) ) ;
53
+ const whiteLabels = definitions . filter ( ( d ) => d . whiteLabel ) . flatMap ( ( d ) => d . whiteLabel ) ;
53
54
const capitalizeFirstChar = ( str ) => str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 ) ;
54
55
55
56
for ( const changelog of changelogs ) {
@@ -97,7 +98,7 @@ for (const changelog of changelogs) {
97
98
98
99
if ( localContext === 'add' ) {
99
100
for ( const model of message . split ( ',' ) ) {
100
- const definition = zhc . definitions . find ( ( d ) => d . model === model . trim ( ) ) ;
101
+ const definition = definitions . find ( ( d ) => d . model === model . trim ( ) ) ;
101
102
const whiteLabel = whiteLabels . find ( ( d ) => d . model === model . trim ( ) ) ;
102
103
const match = definition || whiteLabel ;
103
104
if ( match ) {
You can’t perform that action at this time.
0 commit comments