diff --git a/dist/plex-meets-homeassistant.js b/dist/plex-meets-homeassistant.js index 348f6af..7b56987 100644 --- a/dist/plex-meets-homeassistant.js +++ b/dist/plex-meets-homeassistant.js @@ -19978,6 +19978,9 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { if (!lodash.isNil(config.runAfter)) { this.config.runAfter = config.runAfter; } + if (lodash.isNumber(this.config.maxCount)) { + this.config.maxCount = `${this.config.maxCount}`; + } this.render(); }; this.configChanged = (newConfig) => { diff --git a/src/editor.ts b/src/editor.ts index 38fe154..4c7a653 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -592,6 +592,10 @@ class PlexMeetsHomeAssistantEditor extends HTMLElement { this.config.runAfter = config.runAfter; } + if (_.isNumber(this.config.maxCount)) { + this.config.maxCount = `${this.config.maxCount}`; + } + this.render(); };