File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -195,21 +195,17 @@ function showIntro(strings: Translation) {
195195} ) ( ) ;
196196
197197( async ( ) => {
198- try {
199- const language = await homebridge . i18nCurrentLang ( ) ;
200- const strings = await homebridge . request ( 'i18n' , language ) ;
201- translateHtml ( strings ) ;
202-
203- const config = await homebridge . getPluginConfig ( ) as PlatformConfig [ ] ;
204- if ( config . length ) {
205- await updateDeprecatedLockConfigTopics ( config ) ;
206- showSettings ( strings ) ;
207- } else {
208- await homebridge . updatePluginConfig ( [ { name : i18n_replacements . easy_mqtt } ] ) ;
209- showIntro ( strings ) ;
210- }
211- } catch ( err ) {
212- homebridge . toast . error ( ( err as Error ) . message ) ;
213- homebridge . hideSpinner ( ) ;
198+
199+ const language = await homebridge . i18nCurrentLang ( ) ;
200+ const strings = await homebridge . request ( 'i18n' , language ) ;
201+ translateHtml ( strings ) ;
202+
203+ const config = await homebridge . getPluginConfig ( ) as PlatformConfig [ ] ;
204+ if ( config . length ) {
205+ await updateDeprecatedLockConfigTopics ( config ) ;
206+ showSettings ( strings ) ;
207+ } else {
208+ await homebridge . updatePluginConfig ( [ { name : i18n_replacements . easy_mqtt } ] ) ;
209+ showIntro ( strings ) ;
214210 }
215211} ) ( ) ;
You can’t perform that action at this time.
0 commit comments