diff --git a/hassio/addon-store/hassio-addon-repository.js b/hassio/addon-store/hassio-addon-repository.js index 8e868735ad..1485fa8800 100644 --- a/hassio/addon-store/hassio-addon-repository.js +++ b/hassio/addon-store/hassio-addon-repository.js @@ -39,8 +39,6 @@ class HassioAddonRepository extends window.hassMixins.NavigateMixin(PolymerEleme `; } - static get is() { return 'hassio-addon-repository'; } - static get properties() { return { repo: Object, @@ -71,4 +69,4 @@ class HassioAddonRepository extends window.hassMixins.NavigateMixin(PolymerEleme } } -customElements.define(HassioAddonRepository.is, HassioAddonRepository); +customElements.define('hassio-addon-repository', HassioAddonRepository); diff --git a/hassio/addon-store/hassio-addon-store.js b/hassio/addon-store/hassio-addon-store.js index 4ba6738e2c..030b6e53e4 100644 --- a/hassio/addon-store/hassio-addon-store.js +++ b/hassio/addon-store/hassio-addon-store.js @@ -21,8 +21,6 @@ class HassioAddonStore extends PolymerElement { `; } - static get is() { return 'hassio-addon-store'; } - static get properties() { return { hass: Object, @@ -82,4 +80,4 @@ class HassioAddonStore extends PolymerElement { } } -customElements.define(HassioAddonStore.is, HassioAddonStore); +customElements.define('hassio-addon-store', HassioAddonStore); diff --git a/hassio/addon-store/hassio-repositories-editor.js b/hassio/addon-store/hassio-repositories-editor.js index caf902abd5..bf8e945286 100644 --- a/hassio/addon-store/hassio-repositories-editor.js +++ b/hassio/addon-store/hassio-repositories-editor.js @@ -55,8 +55,6 @@ class HassioRepositoriesEditor extends PolymerElement { `; } - static get is() { return 'hassio-repositories-editor'; } - static get properties() { return { hass: Object, @@ -90,4 +88,4 @@ class HassioRepositoriesEditor extends PolymerElement { } } -customElements.define(HassioRepositoriesEditor.is, HassioRepositoriesEditor); +customElements.define('hassio-repositories-editor', HassioRepositoriesEditor); diff --git a/hassio/addon-view/hassio-addon-audio.js b/hassio/addon-view/hassio-addon-audio.js index 892aa4e290..d35fdc7125 100644 --- a/hassio/addon-view/hassio-addon-audio.js +++ b/hassio/addon-view/hassio-addon-audio.js @@ -59,8 +59,6 @@ class HassioAddonAudio extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-addon-audio'; } - static get properties() { return { hass: Object, @@ -114,4 +112,4 @@ class HassioAddonAudio extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioAddonAudio.is, HassioAddonAudio); +customElements.define('hassio-addon-audio', HassioAddonAudio); diff --git a/hassio/addon-view/hassio-addon-config.js b/hassio/addon-view/hassio-addon-config.js index 943ea18de3..0f7bd4d3fa 100644 --- a/hassio/addon-view/hassio-addon-config.js +++ b/hassio/addon-view/hassio-addon-config.js @@ -47,8 +47,6 @@ class HassioAddonConfig extends PolymerElement { `; } - static get is() { return 'hassio-addon-config'; } - static get properties() { return { hass: Object, @@ -97,4 +95,4 @@ class HassioAddonConfig extends PolymerElement { } } -customElements.define(HassioAddonConfig.is, HassioAddonConfig); +customElements.define('hassio-addon-config', HassioAddonConfig); diff --git a/hassio/addon-view/hassio-addon-info.js b/hassio/addon-view/hassio-addon-info.js index 2e185f9f3c..ce29687330 100644 --- a/hassio/addon-view/hassio-addon-info.js +++ b/hassio/addon-view/hassio-addon-info.js @@ -146,8 +146,6 @@ class HassioAddonInfo extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-addon-info'; } - static get properties() { return { hass: Object, @@ -222,4 +220,4 @@ class HassioAddonInfo extends window.hassMixins.EventsMixin(PolymerElement) { }); } } -customElements.define(HassioAddonInfo.is, HassioAddonInfo); +customElements.define('hassio-addon-info', HassioAddonInfo); diff --git a/hassio/addon-view/hassio-addon-logs.js b/hassio/addon-view/hassio-addon-logs.js index c670237427..0adfede6b1 100644 --- a/hassio/addon-view/hassio-addon-logs.js +++ b/hassio/addon-view/hassio-addon-logs.js @@ -25,8 +25,6 @@ class HassioAddonLogs extends PolymerElement { `; } - static get is() { return 'hassio-addon-logs'; } - static get properties() { return { hass: Object, @@ -55,4 +53,4 @@ class HassioAddonLogs extends PolymerElement { } } -customElements.define(HassioAddonLogs.is, HassioAddonLogs); +customElements.define('hassio-addon-logs', HassioAddonLogs); diff --git a/hassio/addon-view/hassio-addon-network.js b/hassio/addon-view/hassio-addon-network.js index 37579a87db..f7ef624929 100644 --- a/hassio/addon-view/hassio-addon-network.js +++ b/hassio/addon-view/hassio-addon-network.js @@ -57,8 +57,6 @@ class HassioAddonNetwork extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-addon-network'; } - static get properties() { return { hass: Object, @@ -107,4 +105,4 @@ class HassioAddonNetwork extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioAddonNetwork.is, HassioAddonNetwork); +customElements.define('hassio-addon-network', HassioAddonNetwork); diff --git a/hassio/addon-view/hassio-addon-view.js b/hassio/addon-view/hassio-addon-view.js index 68e6792c94..5d4a711a31 100644 --- a/hassio/addon-view/hassio-addon-view.js +++ b/hassio/addon-view/hassio-addon-view.js @@ -67,8 +67,6 @@ class HassioAddonView extends PolymerElement { `; } - static get is() { return 'hassio-addon-view'; } - static get properties() { return { hass: Object, @@ -131,4 +129,4 @@ class HassioAddonView extends PolymerElement { } } -customElements.define(HassioAddonView.is, HassioAddonView); +customElements.define('hassio-addon-view', HassioAddonView); diff --git a/hassio/dashboard/hassio-addons.js b/hassio/dashboard/hassio-addons.js index c120d7c30e..617955e753 100644 --- a/hassio/dashboard/hassio-addons.js +++ b/hassio/dashboard/hassio-addons.js @@ -34,8 +34,6 @@ class HassioAddons extends window.hassMixins.NavigateMixin(PolymerElement) { `; } - static get is() { return 'hassio-addons'; } - static get properties() { return { hass: Object, @@ -72,4 +70,4 @@ class HassioAddons extends window.hassMixins.NavigateMixin(PolymerElement) { } } -customElements.define(HassioAddons.is, HassioAddons); +customElements.define('hassio-addons', HassioAddons); diff --git a/hassio/dashboard/hassio-dashboard.js b/hassio/dashboard/hassio-dashboard.js index 0496d76266..3de9fcccd5 100644 --- a/hassio/dashboard/hassio-dashboard.js +++ b/hassio/dashboard/hassio-dashboard.js @@ -19,8 +19,6 @@ class HassioDashboard extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-dashboard'; } - static get properties() { return { hass: Object, @@ -30,4 +28,4 @@ class HassioDashboard extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioDashboard.is, HassioDashboard); +customElements.define('hassio-dashboard', HassioDashboard); diff --git a/hassio/dashboard/hassio-hass-update.js b/hassio/dashboard/hassio-hass-update.js index a2ec355f0d..86b0c102bc 100644 --- a/hassio/dashboard/hassio-hass-update.js +++ b/hassio/dashboard/hassio-hass-update.js @@ -43,8 +43,6 @@ class HassioHassUpdate extends PolymerElement { `; } - static get is() { return 'hassio-hass-update'; } - static get properties() { return { hass: Object, @@ -78,4 +76,4 @@ class HassioHassUpdate extends PolymerElement { } } -customElements.define(HassioHassUpdate.is, HassioHassUpdate); +customElements.define('hassio-hass-update', HassioHassUpdate); diff --git a/hassio/hassio-app.js b/hassio/hassio-app.js index b01ee3431c..23c45d0cc8 100644 --- a/hassio/hassio-app.js +++ b/hassio/hassio-app.js @@ -12,8 +12,6 @@ class HassioApp extends PolymerElement { `; } - static get is() { return 'hassio-app'; } - static get properties() { return { hass: Object, @@ -44,4 +42,4 @@ class HassioApp extends PolymerElement { } } -customElements.define(HassioApp.is, HassioApp); +customElements.define('hassio-app', HassioApp); diff --git a/hassio/hassio-data.js b/hassio/hassio-data.js index a324292f05..127142287e 100644 --- a/hassio/hassio-data.js +++ b/hassio/hassio-data.js @@ -1,8 +1,6 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; class HassioData extends PolymerElement { - static get is() { return 'hassio-data'; } - static get properties() { return { hass: Object, @@ -59,4 +57,4 @@ class HassioData extends PolymerElement { } } -customElements.define(HassioData.is, HassioData); +customElements.define('hassio-data', HassioData); diff --git a/hassio/hassio-main.js b/hassio/hassio-main.js index 760dc0f3fd..2dbba2a627 100644 --- a/hassio/hassio-main.js +++ b/hassio/hassio-main.js @@ -29,8 +29,6 @@ class HassioMain extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-main'; } - static get properties() { return { hass: Object, @@ -101,4 +99,4 @@ class HassioMain extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioMain.is, HassioMain); +customElements.define('hassio-main', HassioMain); diff --git a/hassio/hassio-markdown-dialog.js b/hassio/hassio-markdown-dialog.js index 396219c2ea..dde813111f 100644 --- a/hassio/hassio-markdown-dialog.js +++ b/hassio/hassio-markdown-dialog.js @@ -62,8 +62,6 @@ class HassioMarkdownDialog extends PolymerElement { `; } - static get is() { return 'hassio-markdown-dialog'; } - static get properties() { return { title: String, @@ -75,4 +73,4 @@ class HassioMarkdownDialog extends PolymerElement { this.$.dialog.open(); } } -customElements.define(HassioMarkdownDialog.is, HassioMarkdownDialog); +customElements.define('hassio-markdown-dialog', HassioMarkdownDialog); diff --git a/hassio/hassio-pages-with-tabs.js b/hassio/hassio-pages-with-tabs.js index 68080bba62..c46c8cf6d1 100644 --- a/hassio/hassio-pages-with-tabs.js +++ b/hassio/hassio-pages-with-tabs.js @@ -69,8 +69,6 @@ class HassioPagesWithTabs extends window.hassMixins.NavigateMixin(PolymerElement `; } - static get is() { return 'hassio-pages-with-tabs'; } - static get properties() { return { hass: Object, @@ -128,4 +126,4 @@ class HassioPagesWithTabs extends window.hassMixins.NavigateMixin(PolymerElement } } -customElements.define(HassioPagesWithTabs.is, HassioPagesWithTabs); +customElements.define('hassio-pages-with-tabs', HassioPagesWithTabs); diff --git a/hassio/snapshots/hassio-snapshot.js b/hassio/snapshots/hassio-snapshot.js index 5c3801d444..aca817d7bd 100644 --- a/hassio/snapshots/hassio-snapshot.js +++ b/hassio/snapshots/hassio-snapshot.js @@ -108,8 +108,6 @@ class HassioSnapshot extends PolymerElement { `; } - static get is() { return 'hassio-snapshot'; } - static get properties() { return { hass: Object, @@ -254,4 +252,4 @@ class HassioSnapshot extends PolymerElement { this.snapshotSlug = null; } } -customElements.define(HassioSnapshot.is, HassioSnapshot); +customElements.define('hassio-snapshot', HassioSnapshot); diff --git a/hassio/snapshots/hassio-snapshots.js b/hassio/snapshots/hassio-snapshots.js index be062de773..10be564af8 100644 --- a/hassio/snapshots/hassio-snapshots.js +++ b/hassio/snapshots/hassio-snapshots.js @@ -100,8 +100,6 @@ class HassioSnapshots extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-snapshots'; } - static get properties() { return { hass: Object, @@ -261,4 +259,4 @@ class HassioSnapshots extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioSnapshots.is, HassioSnapshots); +customElements.define('hassio-snapshots', HassioSnapshots); diff --git a/hassio/system/hassio-host-info.js b/hassio/system/hassio-host-info.js index 84039ee3b7..c1bd5100f3 100644 --- a/hassio/system/hassio-host-info.js +++ b/hassio/system/hassio-host-info.js @@ -79,8 +79,6 @@ class HassioHostInfo extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'hassio-host-info'; } - static get properties() { return { hass: Object, @@ -154,4 +152,4 @@ class HassioHostInfo extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HassioHostInfo.is, HassioHostInfo); +customElements.define('hassio-host-info', HassioHostInfo); diff --git a/hassio/system/hassio-supervisor-info.js b/hassio/system/hassio-supervisor-info.js index 64d36c9aff..98440e8ec7 100644 --- a/hassio/system/hassio-supervisor-info.js +++ b/hassio/system/hassio-supervisor-info.js @@ -77,8 +77,6 @@ class HassioSupervisorInfo extends window.hassMixins.EventsMixin(PolymerElement) `; } - static get is() { return 'hassio-supervisor-info'; } - static get properties() { return { hass: Object, @@ -152,4 +150,4 @@ This inludes beta releases for: } } -customElements.define(HassioSupervisorInfo.is, HassioSupervisorInfo); +customElements.define('hassio-supervisor-info', HassioSupervisorInfo); diff --git a/hassio/system/hassio-supervisor-log.js b/hassio/system/hassio-supervisor-log.js index 4889b5c083..c8fb63daff 100644 --- a/hassio/system/hassio-supervisor-log.js +++ b/hassio/system/hassio-supervisor-log.js @@ -22,8 +22,6 @@ class HassioSupervisorLog extends PolymerElement { `; } - static get is() { return 'hassio-supervisor-log'; } - static get properties() { return { hass: Object, @@ -50,4 +48,4 @@ class HassioSupervisorLog extends PolymerElement { } } -customElements.define(HassioSupervisorLog.is, HassioSupervisorLog); +customElements.define('hassio-supervisor-log', HassioSupervisorLog); diff --git a/hassio/system/hassio-system.js b/hassio/system/hassio-system.js index 3654d2a835..66e958cec9 100644 --- a/hassio/system/hassio-system.js +++ b/hassio/system/hassio-system.js @@ -31,8 +31,6 @@ class HassioSystem extends PolymerElement { `; } - static get is() { return 'hassio-system'; } - static get properties() { return { hass: Object, @@ -42,4 +40,4 @@ class HassioSystem extends PolymerElement { } } -customElements.define(HassioSystem.is, HassioSystem); +customElements.define('hassio-system', HassioSystem); diff --git a/panels/config/automation/ha-automation-editor.js b/panels/config/automation/ha-automation-editor.js index 5a63b79b33..2e87527b70 100644 --- a/panels/config/automation/ha-automation-editor.js +++ b/panels/config/automation/ha-automation-editor.js @@ -115,8 +115,6 @@ class HaAutomationEditor extends `; } - static get is() { return 'ha-automation-editor'; } - static get properties() { return { hass: { @@ -290,4 +288,4 @@ class HaAutomationEditor extends } } -customElements.define(HaAutomationEditor.is, HaAutomationEditor); +customElements.define('ha-automation-editor', HaAutomationEditor); diff --git a/panels/config/automation/ha-automation-picker.js b/panels/config/automation/ha-automation-picker.js index e60e6fe8cd..167a6a2e50 100644 --- a/panels/config/automation/ha-automation-picker.js +++ b/panels/config/automation/ha-automation-picker.js @@ -88,8 +88,6 @@ class HaAutomationPicker extends `; } - static get is() { return 'ha-automation-picker'; } - static get properties() { return { hass: { @@ -138,4 +136,4 @@ class HaAutomationPicker extends } } -customElements.define(HaAutomationPicker.is, HaAutomationPicker); +customElements.define('ha-automation-picker', HaAutomationPicker); diff --git a/panels/config/automation/ha-config-automation.js b/panels/config/automation/ha-config-automation.js index 86c6160f0f..68374a82f8 100644 --- a/panels/config/automation/ha-config-automation.js +++ b/panels/config/automation/ha-config-automation.js @@ -27,8 +27,6 @@ class HaConfigAutomation extends PolymerElement { `; } - static get is() { return 'ha-config-automation'; } - static get properties() { return { hass: Object, @@ -103,4 +101,4 @@ class HaConfigAutomation extends PolymerElement { } } -customElements.define(HaConfigAutomation.is, HaConfigAutomation); +customElements.define('ha-config-automation', HaConfigAutomation); diff --git a/panels/config/cloud/ha-config-cloud-account.js b/panels/config/cloud/ha-config-cloud-account.js index 45eae04534..a1bdca158d 100644 --- a/panels/config/cloud/ha-config-cloud-account.js +++ b/panels/config/cloud/ha-config-cloud-account.js @@ -132,8 +132,6 @@ class HaConfigCloudAccount extends window.hassMixins.EventsMixin(PolymerElement) `; } - static get is() { return 'ha-config-cloud-account'; } - static get properties() { return { hass: Object, @@ -171,4 +169,4 @@ class HaConfigCloudAccount extends window.hassMixins.EventsMixin(PolymerElement) } } -customElements.define(HaConfigCloudAccount.is, HaConfigCloudAccount); +customElements.define('ha-config-cloud-account', HaConfigCloudAccount); diff --git a/panels/config/cloud/ha-config-cloud-forgot-password.js b/panels/config/cloud/ha-config-cloud-forgot-password.js index ece6a012b8..e871a753b7 100644 --- a/panels/config/cloud/ha-config-cloud-forgot-password.js +++ b/panels/config/cloud/ha-config-cloud-forgot-password.js @@ -61,8 +61,6 @@ class HaConfigCloudForgotPassword extends window.hassMixins.EventsMixin(PolymerE `; } - static get is() { return 'ha-config-cloud-forgot-password'; } - static get properties() { return { hass: Object, @@ -119,4 +117,4 @@ class HaConfigCloudForgotPassword extends window.hassMixins.EventsMixin(PolymerE } } -customElements.define(HaConfigCloudForgotPassword.is, HaConfigCloudForgotPassword); +customElements.define('ha-config-cloud-forgot-password', HaConfigCloudForgotPassword); diff --git a/panels/config/cloud/ha-config-cloud-login.js b/panels/config/cloud/ha-config-cloud-login.js index 458c86d05d..93ff4ea87d 100644 --- a/panels/config/cloud/ha-config-cloud-login.js +++ b/panels/config/cloud/ha-config-cloud-login.js @@ -104,8 +104,6 @@ class HaConfigCloudLogin extends `; } - static get is() { return 'ha-config-cloud-login'; } - static get properties() { return { hass: Object, @@ -232,4 +230,4 @@ class HaConfigCloudLogin extends } } -customElements.define(HaConfigCloudLogin.is, HaConfigCloudLogin); +customElements.define('ha-config-cloud-login', HaConfigCloudLogin); diff --git a/panels/config/cloud/ha-config-cloud-register.js b/panels/config/cloud/ha-config-cloud-register.js index 5e894f5094..467e8bfaa2 100644 --- a/panels/config/cloud/ha-config-cloud-register.js +++ b/panels/config/cloud/ha-config-cloud-register.js @@ -77,8 +77,6 @@ class HaConfigCloudRegister extends window.hassMixins.EventsMixin(PolymerElement `; } - static get is() { return 'ha-config-cloud-register'; } - static get properties() { return { hass: Object, @@ -183,4 +181,4 @@ class HaConfigCloudRegister extends window.hassMixins.EventsMixin(PolymerElement } } -customElements.define(HaConfigCloudRegister.is, HaConfigCloudRegister); +customElements.define('ha-config-cloud-register', HaConfigCloudRegister); diff --git a/panels/config/cloud/ha-config-cloud.js b/panels/config/cloud/ha-config-cloud.js index 31be066536..e8ec509f8c 100644 --- a/panels/config/cloud/ha-config-cloud.js +++ b/panels/config/cloud/ha-config-cloud.js @@ -44,8 +44,6 @@ import './ha-config-cloud-register.js'; `; } - static get is() { return 'ha-config-cloud'; } - static get properties() { return { hass: Object, @@ -105,5 +103,5 @@ import './ha-config-cloud-register.js'; } } - customElements.define(HaConfigCloud.is, HaConfigCloud); + customElements.define('ha-config-cloud', HaConfigCloud); } diff --git a/panels/config/config-entries/ha-config-entries.js b/panels/config/config-entries/ha-config-entries.js index 920ff50997..44fb7389a2 100644 --- a/panels/config/config-entries/ha-config-entries.js +++ b/panels/config/config-entries/ha-config-entries.js @@ -96,8 +96,6 @@ import './ha-config-flow.js'; `; } - static get is() { return 'ha-config-entries'; } - static get properties() { return { hass: Object, @@ -200,5 +198,5 @@ import './ha-config-flow.js'; } } - customElements.define(HaConfigManager.is, HaConfigManager); + customElements.define('ha-config-entries', HaConfigManager); } diff --git a/panels/config/config-entries/ha-config-flow.js b/panels/config/config-entries/ha-config-flow.js index 2d42a99c07..2afe1a845e 100644 --- a/panels/config/config-entries/ha-config-flow.js +++ b/panels/config/config-entries/ha-config-flow.js @@ -78,8 +78,6 @@ class HaConfigFlow extends `; } - static get is() { return 'ha-config-flow'; } - static get properties() { return { hass: Object, @@ -192,4 +190,4 @@ class HaConfigFlow extends } } -customElements.define(HaConfigFlow.is, HaConfigFlow); +customElements.define('ha-config-flow', HaConfigFlow); diff --git a/panels/config/core/ha-config-core.js b/panels/config/core/ha-config-core.js index 1cbfabe960..0c22a74868 100644 --- a/panels/config/core/ha-config-core.js +++ b/panels/config/core/ha-config-core.js @@ -64,8 +64,6 @@ class HaConfigCore extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-config-core'; } - static get properties() { return { hass: Object, @@ -100,4 +98,4 @@ class HaConfigCore extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaConfigCore.is, HaConfigCore); +customElements.define('ha-config-core', HaConfigCore); diff --git a/panels/config/core/ha-config-section-core.js b/panels/config/core/ha-config-section-core.js index 5a8138f535..a0591382d4 100644 --- a/panels/config/core/ha-config-section-core.js +++ b/panels/config/core/ha-config-section-core.js @@ -115,8 +115,6 @@ class HaConfigSectionCore extends window.hassMixins.LocalizeMixin(PolymerElement `; } - static get is() { return 'ha-config-section-core'; } - static get properties() { return { hass: { @@ -173,4 +171,4 @@ class HaConfigSectionCore extends window.hassMixins.LocalizeMixin(PolymerElement } } -customElements.define(HaConfigSectionCore.is, HaConfigSectionCore); +customElements.define('ha-config-section-core', HaConfigSectionCore); diff --git a/panels/config/core/ha-config-section-push-notifications.js b/panels/config/core/ha-config-section-push-notifications.js index 760160f6b7..bdb1f6e1e6 100644 --- a/panels/config/core/ha-config-section-push-notifications.js +++ b/panels/config/core/ha-config-section-push-notifications.js @@ -27,7 +27,7 @@ class HaConfigSectionPushNotifications extends window.hassMixins.LocalizeMixin(P
- + [[localize('ui.panel.config.core.section.push_notifications.push_notifications')]] @@ -37,8 +37,6 @@ class HaConfigSectionPushNotifications extends window.hassMixins.LocalizeMixin(P `; } - static get is() { return 'ha-config-section-push-notifications'; } - static get properties() { return { hass: Object, @@ -51,4 +49,4 @@ class HaConfigSectionPushNotifications extends window.hassMixins.LocalizeMixin(P } } -customElements.define(HaConfigSectionPushNotifications.is, HaConfigSectionPushNotifications); +customElements.define('ha-config-section-push-notifications', HaConfigSectionPushNotifications); diff --git a/panels/config/core/ha-config-section-themes.js b/panels/config/core/ha-config-section-themes.js index d4662df386..c597c27f9c 100644 --- a/panels/config/core/ha-config-section-themes.js +++ b/panels/config/core/ha-config-section-themes.js @@ -37,8 +37,6 @@ class HaConfigSectionThemes extends `; } - static get is() { return 'ha-config-section-themes'; } - static get properties() { return { hass: { @@ -91,4 +89,4 @@ class HaConfigSectionThemes extends } } -customElements.define(HaConfigSectionThemes.is, HaConfigSectionThemes); +customElements.define('ha-config-section-themes', HaConfigSectionThemes); diff --git a/panels/config/core/ha-config-section-translation.js b/panels/config/core/ha-config-section-translation.js index e06afb7015..30f8a813f8 100644 --- a/panels/config/core/ha-config-section-translation.js +++ b/panels/config/core/ha-config-section-translation.js @@ -37,8 +37,6 @@ class HaConfigSectionTranslation extends `; } - static get is() { return 'ha-config-section-translation'; } - static get properties() { return { hass: { @@ -83,4 +81,4 @@ class HaConfigSectionTranslation extends } } -customElements.define(HaConfigSectionTranslation.is, HaConfigSectionTranslation); +customElements.define('ha-config-section-translation', HaConfigSectionTranslation); diff --git a/panels/config/customize/ha-config-customize.js b/panels/config/customize/ha-config-customize.js index 603627b0dc..83c8d64a5b 100644 --- a/panels/config/customize/ha-config-customize.js +++ b/panels/config/customize/ha-config-customize.js @@ -44,8 +44,6 @@ class HaConfigCustomize extends window.hassMixins.LocalizeMixin(PolymerElement) `; } - static get is() { return 'ha-config-customize'; } - static get properties() { return { hass: Object, @@ -81,4 +79,4 @@ class HaConfigCustomize extends window.hassMixins.LocalizeMixin(PolymerElement) .sort(window.hassUtil.sortByName); } } -customElements.define(HaConfigCustomize.is, HaConfigCustomize); +customElements.define('ha-config-customize', HaConfigCustomize); diff --git a/panels/config/customize/ha-customize-attribute.js b/panels/config/customize/ha-customize-attribute.js index 56f9e5e3a2..643fb90a9c 100644 --- a/panels/config/customize/ha-customize-attribute.js +++ b/panels/config/customize/ha-customize-attribute.js @@ -32,8 +32,6 @@ class HaCustomizeAttribute extends PolymerElement { `; } - static get is() { return 'ha-customize-attribute'; } - static get properties() { return { item: { @@ -80,4 +78,4 @@ class HaCustomizeAttribute extends PolymerElement { } } } -customElements.define(HaCustomizeAttribute.is, HaCustomizeAttribute); +customElements.define('ha-customize-attribute', HaCustomizeAttribute); diff --git a/panels/config/customize/ha-form-customize-attributes.js b/panels/config/customize/ha-form-customize-attributes.js index eecc1e9a54..120383a44c 100644 --- a/panels/config/customize/ha-form-customize-attributes.js +++ b/panels/config/customize/ha-form-customize-attributes.js @@ -19,8 +19,6 @@ class HaFormCustomizeAttributes extends MutableData(PolymerElement) { `; } - static get is() { return 'ha-form-customize-attributes'; } - static get properties() { return { attributes: { @@ -30,4 +28,4 @@ class HaFormCustomizeAttributes extends MutableData(PolymerElement) { }; } } -customElements.define(HaFormCustomizeAttributes.is, HaFormCustomizeAttributes); +customElements.define('ha-form-customize-attributes', HaFormCustomizeAttributes); diff --git a/panels/config/customize/ha-form-customize.js b/panels/config/customize/ha-form-customize.js index 485fb97ac8..3bc1c7333c 100644 --- a/panels/config/customize/ha-form-customize.js +++ b/panels/config/customize/ha-form-customize.js @@ -64,8 +64,6 @@ class HaFormCustomize extends PolymerElement { `; } - static get is() { return 'ha-form-customize'; } - static get properties() { return { hass: { @@ -266,4 +264,4 @@ class HaFormCustomize extends PolymerElement { ); } } -customElements.define(HaFormCustomize.is, HaFormCustomize); +customElements.define('ha-form-customize', HaFormCustomize); diff --git a/panels/config/customize/types/ha-customize-array.js b/panels/config/customize/types/ha-customize-array.js index 145a08bf00..ce6d2e9e7d 100644 --- a/panels/config/customize/types/ha-customize-array.js +++ b/panels/config/customize/types/ha-customize-array.js @@ -24,8 +24,6 @@ class HaCustomizeArray extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-customize-array'; } - static get properties() { return { item: { @@ -51,4 +49,4 @@ class HaCustomizeArray extends window.hassMixins.EventsMixin(PolymerElement) { return options.indexOf(item.value); } } -customElements.define(HaCustomizeArray.is, HaCustomizeArray); +customElements.define('ha-customize-array', HaCustomizeArray); diff --git a/panels/config/customize/types/ha-customize-boolean.js b/panels/config/customize/types/ha-customize-boolean.js index dd10b26045..d65ec71abe 100644 --- a/panels/config/customize/types/ha-customize-boolean.js +++ b/panels/config/customize/types/ha-customize-boolean.js @@ -11,8 +11,6 @@ class HaCustomizeBoolean extends PolymerElement { `; } - static get is() { return 'ha-customize-boolean'; } - static get properties() { return { item: { @@ -22,4 +20,4 @@ class HaCustomizeBoolean extends PolymerElement { }; } } -customElements.define(HaCustomizeBoolean.is, HaCustomizeBoolean); +customElements.define('ha-customize-boolean', HaCustomizeBoolean); diff --git a/panels/config/customize/types/ha-customize-icon.js b/panels/config/customize/types/ha-customize-icon.js index c7daad4410..65a94dedd5 100644 --- a/panels/config/customize/types/ha-customize-icon.js +++ b/panels/config/customize/types/ha-customize-icon.js @@ -23,8 +23,6 @@ class HaCustomizeIcon extends PolymerElement { `; } - static get is() { return 'ha-customize-icon'; } - static get properties() { return { item: { @@ -34,4 +32,4 @@ class HaCustomizeIcon extends PolymerElement { }; } } -customElements.define(HaCustomizeIcon.is, HaCustomizeIcon); +customElements.define('ha-customize-icon', HaCustomizeIcon); diff --git a/panels/config/customize/types/ha-customize-key-value.js b/panels/config/customize/types/ha-customize-key-value.js index 1e239ba1c6..a3408c330e 100644 --- a/panels/config/customize/types/ha-customize-key-value.js +++ b/panels/config/customize/types/ha-customize-key-value.js @@ -23,8 +23,6 @@ class HaCustomizeKeyValue extends PolymerElement { `; } - static get is() { return 'ha-customize-key-value'; } - static get properties() { return { item: { @@ -34,4 +32,4 @@ class HaCustomizeKeyValue extends PolymerElement { }; } } -customElements.define(HaCustomizeKeyValue.is, HaCustomizeKeyValue); +customElements.define('ha-customize-key-value', HaCustomizeKeyValue); diff --git a/panels/config/customize/types/ha-customize-string.js b/panels/config/customize/types/ha-customize-string.js index ade7377be4..83c18c31bb 100644 --- a/panels/config/customize/types/ha-customize-string.js +++ b/panels/config/customize/types/ha-customize-string.js @@ -10,8 +10,6 @@ class HaCustomizeString extends PolymerElement { `; } - static get is() { return 'ha-customize-string'; } - static get properties() { return { item: { @@ -25,4 +23,4 @@ class HaCustomizeString extends PolymerElement { return item.description + (item.type === 'json' ? ' (JSON formatted)' : ''); } } -customElements.define(HaCustomizeString.is, HaCustomizeString); +customElements.define('ha-customize-string', HaCustomizeString); diff --git a/panels/config/dashboard/ha-config-cloud-menu.js b/panels/config/dashboard/ha-config-cloud-menu.js index 402317b9a5..7906d90f7c 100644 --- a/panels/config/dashboard/ha-config-cloud-menu.js +++ b/panels/config/dashboard/ha-config-cloud-menu.js @@ -35,8 +35,6 @@ class HaConfigCloudMenu extends window.hassMixins.NavigateMixin(PolymerElement) `; } - static get is() { return 'ha-config-cloud-menu'; } - static get properties() { return { hass: Object, @@ -50,4 +48,4 @@ class HaConfigCloudMenu extends window.hassMixins.NavigateMixin(PolymerElement) } } -customElements.define(HaConfigCloudMenu.is, HaConfigCloudMenu); +customElements.define('ha-config-cloud-menu', HaConfigCloudMenu); diff --git a/panels/config/dashboard/ha-config-dashboard.js b/panels/config/dashboard/ha-config-dashboard.js index c94d5ec218..10cf25141d 100644 --- a/panels/config/dashboard/ha-config-dashboard.js +++ b/panels/config/dashboard/ha-config-dashboard.js @@ -51,8 +51,6 @@ class HaConfigDashboard extends window.hassMixins.LocalizeMixin(PolymerElement) `; } - static get is() { return 'ha-config-dashboard'; } - static get properties() { return { hass: Object, @@ -68,4 +66,4 @@ class HaConfigDashboard extends window.hassMixins.LocalizeMixin(PolymerElement) } } -customElements.define(HaConfigDashboard.is, HaConfigDashboard); +customElements.define('ha-config-dashboard', HaConfigDashboard); diff --git a/panels/config/dashboard/ha-config-entries-menu.js b/panels/config/dashboard/ha-config-entries-menu.js index fadea0ace4..8cd919bbb1 100644 --- a/panels/config/dashboard/ha-config-entries-menu.js +++ b/panels/config/dashboard/ha-config-entries-menu.js @@ -30,8 +30,6 @@ class HaConfigEntriesMenu extends window.hassMixins.NavigateMixin(PolymerElement `; } - static get is() { return 'ha-config-entries-menu'; } - static get properties() { return { hass: Object, @@ -45,4 +43,4 @@ class HaConfigEntriesMenu extends window.hassMixins.NavigateMixin(PolymerElement } } -customElements.define(HaConfigEntriesMenu.is, HaConfigEntriesMenu); +customElements.define('ha-config-entries-menu', HaConfigEntriesMenu); diff --git a/panels/config/dashboard/ha-config-navigation.js b/panels/config/dashboard/ha-config-navigation.js index 3ec4b58c75..0dedd1827f 100644 --- a/panels/config/dashboard/ha-config-navigation.js +++ b/panels/config/dashboard/ha-config-navigation.js @@ -44,8 +44,6 @@ import '../../../src/util/hass-mixins.js'; `; } - static get is() { return 'ha-config-navigation'; } - static get properties() { return { hass: { @@ -82,5 +80,5 @@ import '../../../src/util/hass-mixins.js'; } } - customElements.define(HaConfigNavigation.is, HaConfigNavigation); + customElements.define('ha-config-navigation', HaConfigNavigation); } diff --git a/panels/config/ha-config-section.js b/panels/config/ha-config-section.js index 89a5348760..68253d8d07 100644 --- a/panels/config/ha-config-section.js +++ b/panels/config/ha-config-section.js @@ -69,8 +69,6 @@ class HaConfigSection extends PolymerElement { `; } - static get is() { return 'ha-config-section'; } - static get properties() { return { hass: { @@ -106,4 +104,4 @@ class HaConfigSection extends PolymerElement { } } -customElements.define(HaConfigSection.is, HaConfigSection); +customElements.define('ha-config-section', HaConfigSection); diff --git a/panels/config/ha-entity-config.js b/panels/config/ha-entity-config.js index ee696a4339..acf29e0bb5 100644 --- a/panels/config/ha-entity-config.js +++ b/panels/config/ha-entity-config.js @@ -74,8 +74,6 @@ class HaEntityConfig extends PolymerElement { `; } - static get is() { return 'ha-entity-config'; } - static get properties() { return { hass: { @@ -198,4 +196,4 @@ class HaEntityConfig extends PolymerElement { } } -customElements.define(HaEntityConfig.is, HaEntityConfig); +customElements.define('ha-entity-config', HaEntityConfig); diff --git a/panels/config/ha-panel-config.js b/panels/config/ha-panel-config.js index e2995458f6..4f9e5a9de1 100644 --- a/panels/config/ha-panel-config.js +++ b/panels/config/ha-panel-config.js @@ -102,8 +102,6 @@ class HaPanelConfig extends window.hassMixins.NavigateMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-config'; } - static get properties() { return { hass: Object, @@ -153,4 +151,4 @@ class HaPanelConfig extends window.hassMixins.NavigateMixin(PolymerElement) { } } -customElements.define(HaPanelConfig.is, HaPanelConfig); +customElements.define('ha-panel-config', HaPanelConfig); diff --git a/panels/config/script/ha-config-script.js b/panels/config/script/ha-config-script.js index e6b53818b2..354b44aa0a 100644 --- a/panels/config/script/ha-config-script.js +++ b/panels/config/script/ha-config-script.js @@ -27,8 +27,6 @@ class HaConfigScript extends PolymerElement { `; } - static get is() { return 'ha-config-script'; } - static get properties() { return { hass: Object, @@ -100,4 +98,4 @@ class HaConfigScript extends PolymerElement { } } -customElements.define(HaConfigScript.is, HaConfigScript); +customElements.define('ha-config-script', HaConfigScript); diff --git a/panels/config/script/ha-script-editor.js b/panels/config/script/ha-script-editor.js index fb032d8f94..71c1dd2f44 100644 --- a/panels/config/script/ha-script-editor.js +++ b/panels/config/script/ha-script-editor.js @@ -110,8 +110,6 @@ class HaScriptEditor extends `; } - static get is() { return 'ha-script-editor'; } - static get properties() { return { hass: { @@ -281,4 +279,4 @@ class HaScriptEditor extends } } -customElements.define(HaScriptEditor.is, HaScriptEditor); +customElements.define('ha-script-editor', HaScriptEditor); diff --git a/panels/config/script/ha-script-picker.js b/panels/config/script/ha-script-picker.js index e0b4e50392..c75434dd30 100644 --- a/panels/config/script/ha-script-picker.js +++ b/panels/config/script/ha-script-picker.js @@ -84,8 +84,6 @@ class HaScriptPicker extends `; } - static get is() { return 'ha-script-picker'; } - static get properties() { return { hass: { @@ -134,4 +132,4 @@ class HaScriptPicker extends } } -customElements.define(HaScriptPicker.is, HaScriptPicker); +customElements.define('ha-script-picker', HaScriptPicker); diff --git a/panels/config/zwave/ha-config-zwave.js b/panels/config/zwave/ha-config-zwave.js index 06ee8fe81f..b80e4c2ec7 100644 --- a/panels/config/zwave/ha-config-zwave.js +++ b/panels/config/zwave/ha-config-zwave.js @@ -209,8 +209,6 @@ class HaConfigZwave extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-config-zwave'; } - static get properties() { return { hass: Object, @@ -474,4 +472,4 @@ class HaConfigZwave extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaConfigZwave.is, HaConfigZwave); +customElements.define('ha-config-zwave', HaConfigZwave); diff --git a/panels/config/zwave/zwave-groups.js b/panels/config/zwave/zwave-groups.js index e166f0b844..105c8f3d97 100644 --- a/panels/config/zwave/zwave-groups.js +++ b/panels/config/zwave/zwave-groups.js @@ -83,8 +83,6 @@ class ZwaveGroups extends PolymerElement { `; } - static get is() { return 'zwave-groups'; } - static get properties() { return { hass: { @@ -238,4 +236,4 @@ class ZwaveGroups extends PolymerElement { } } -customElements.define(ZwaveGroups.is, ZwaveGroups); +customElements.define('zwave-groups', ZwaveGroups); diff --git a/panels/config/zwave/zwave-log.js b/panels/config/zwave/zwave-log.js index f87266b8dd..290f7cd493 100644 --- a/panels/config/zwave/zwave-log.js +++ b/panels/config/zwave/zwave-log.js @@ -45,8 +45,6 @@ class OzwLog extends PolymerElement { `; } - static get is() { return 'ozw-log'; } - static get properties() { return { hass: { @@ -79,4 +77,4 @@ class OzwLog extends PolymerElement { } } -customElements.define(OzwLog.is, OzwLog); +customElements.define('ozw-log', OzwLog); diff --git a/panels/config/zwave/zwave-network.js b/panels/config/zwave/zwave-network.js index ce09a6fc86..fb07c6b7c5 100644 --- a/panels/config/zwave/zwave-network.js +++ b/panels/config/zwave/zwave-network.js @@ -92,8 +92,6 @@ class ZwaveNetwork extends PolymerElement { `; } - static get is() { return 'zwave-network'; } - static get properties() { return { hass: { @@ -117,4 +115,4 @@ class ZwaveNetwork extends PolymerElement { } } -customElements.define(ZwaveNetwork.is, ZwaveNetwork); +customElements.define('zwave-network', ZwaveNetwork); diff --git a/panels/config/zwave/zwave-node-config.js b/panels/config/zwave/zwave-node-config.js index f42f41b16c..8f75aaf459 100644 --- a/panels/config/zwave/zwave-node-config.js +++ b/panels/config/zwave/zwave-node-config.js @@ -96,8 +96,6 @@ class ZwaveNodeConfig extends PolymerElement { `; } - static get is() { return 'zwave-node-config'; } - static get properties() { return { hass: { @@ -295,4 +293,4 @@ class ZwaveNodeConfig extends PolymerElement { } } -customElements.define(ZwaveNodeConfig.is, ZwaveNodeConfig); +customElements.define('zwave-node-config', ZwaveNodeConfig); diff --git a/panels/config/zwave/zwave-node-information.js b/panels/config/zwave/zwave-node-information.js index cecdc093e8..f162d0585e 100644 --- a/panels/config/zwave/zwave-node-information.js +++ b/panels/config/zwave/zwave-node-information.js @@ -44,8 +44,6 @@ class ZwaveNodeInformation extends PolymerElement { `; } - static get is() { return 'zwave-node-information'; } - static get properties() { return { nodes: { @@ -80,4 +78,4 @@ class ZwaveNodeInformation extends PolymerElement { } } -customElements.define(ZwaveNodeInformation.is, ZwaveNodeInformation); +customElements.define('zwave-node-information', ZwaveNodeInformation); diff --git a/panels/config/zwave/zwave-usercodes.js b/panels/config/zwave/zwave-usercodes.js index 8b5f1af0fa..ac1356e38f 100644 --- a/panels/config/zwave/zwave-usercodes.js +++ b/panels/config/zwave/zwave-usercodes.js @@ -58,8 +58,6 @@ class ZwaveUsercodes extends PolymerElement { `; } - static get is() { return 'zwave-usercodes'; } - static get properties() { return { hass: { @@ -194,4 +192,4 @@ class ZwaveUsercodes extends PolymerElement { } } -customElements.define(ZwaveUsercodes.is, ZwaveUsercodes); +customElements.define('zwave-usercodes', ZwaveUsercodes); diff --git a/panels/config/zwave/zwave-values.js b/panels/config/zwave/zwave-values.js index eab048aa10..18dfba7140 100644 --- a/panels/config/zwave/zwave-values.js +++ b/panels/config/zwave/zwave-values.js @@ -58,8 +58,6 @@ class ZwaveValues extends PolymerElement { `; } - static get is() { return 'zwave-values'; } - static get properties() { return { hass: { @@ -146,4 +144,4 @@ class ZwaveValues extends PolymerElement { } } -customElements.define(ZwaveValues.is, ZwaveValues); +customElements.define('zwave-values', ZwaveValues); diff --git a/panels/dev-event/events-list.js b/panels/dev-event/events-list.js index 444b233743..6b0a35d61d 100644 --- a/panels/dev-event/events-list.js +++ b/panels/dev-event/events-list.js @@ -33,8 +33,6 @@ class EventsList extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'events-list'; } - static get properties() { return { hass: { @@ -60,4 +58,4 @@ class EventsList extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(EventsList.is, EventsList); +customElements.define('events-list', EventsList); diff --git a/panels/dev-event/ha-panel-dev-event.js b/panels/dev-event/ha-panel-dev-event.js index ee3a440109..02a3255bb7 100644 --- a/panels/dev-event/ha-panel-dev-event.js +++ b/panels/dev-event/ha-panel-dev-event.js @@ -68,8 +68,6 @@ class HaPanelDevEvent extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-dev-event'; } - static get properties() { return { hass: { @@ -128,4 +126,4 @@ class HaPanelDevEvent extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaPanelDevEvent.is, HaPanelDevEvent); +customElements.define('ha-panel-dev-event', HaPanelDevEvent); diff --git a/panels/dev-info/ha-panel-dev-info.js b/panels/dev-info/ha-panel-dev-info.js index 1790b80089..1dda0501b9 100644 --- a/panels/dev-info/ha-panel-dev-info.js +++ b/panels/dev-info/ha-panel-dev-info.js @@ -215,7 +215,6 @@ class HaPanelDevInfo extends PolymerElement { `; } - static get is() { return 'ha-panel-dev-info'; } static get properties() { return { @@ -330,4 +329,4 @@ class HaPanelDevInfo extends PolymerElement { } } -customElements.define(HaPanelDevInfo.is, HaPanelDevInfo); +customElements.define('ha-panel-dev-info', HaPanelDevInfo); diff --git a/panels/dev-mqtt/ha-panel-dev-mqtt.js b/panels/dev-mqtt/ha-panel-dev-mqtt.js index 7ede0878e7..c94fe4566c 100644 --- a/panels/dev-mqtt/ha-panel-dev-mqtt.js +++ b/panels/dev-mqtt/ha-panel-dev-mqtt.js @@ -78,8 +78,6 @@ class HaPanelDevMqtt extends PolymerElement { `; } - static get is() { return 'ha-panel-dev-mqtt'; } - static get properties() { return { hass: Object, @@ -98,4 +96,4 @@ class HaPanelDevMqtt extends PolymerElement { } } -customElements.define(HaPanelDevMqtt.is, HaPanelDevMqtt); +customElements.define('ha-panel-dev-mqtt', HaPanelDevMqtt); diff --git a/panels/dev-service/ha-panel-dev-service.js b/panels/dev-service/ha-panel-dev-service.js index 0d225b8457..b27c48770e 100644 --- a/panels/dev-service/ha-panel-dev-service.js +++ b/panels/dev-service/ha-panel-dev-service.js @@ -167,7 +167,6 @@ import '../../src/util/app-localstorage-document.js'; `; } - static get is() { return 'ha-panel-dev-service'; } static get properties() { return { @@ -301,5 +300,5 @@ import '../../src/util/app-localstorage-document.js'; } } - customElements.define(HaPanelDevService.is, HaPanelDevService); + customElements.define('ha-panel-dev-service', HaPanelDevService); } diff --git a/panels/dev-state/ha-panel-dev-state.js b/panels/dev-state/ha-panel-dev-state.js index b98cfd77e0..c9cf00374e 100644 --- a/panels/dev-state/ha-panel-dev-state.js +++ b/panels/dev-state/ha-panel-dev-state.js @@ -135,7 +135,6 @@ class HaPanelDevState extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-dev-state'; } static get properties() { return { @@ -316,4 +315,4 @@ class HaPanelDevState extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaPanelDevState.is, HaPanelDevState); +customElements.define('ha-panel-dev-state', HaPanelDevState); diff --git a/panels/dev-template/ha-panel-dev-template.js b/panels/dev-template/ha-panel-dev-template.js index a95d92e071..aa57f38042 100644 --- a/panels/dev-template/ha-panel-dev-template.js +++ b/panels/dev-template/ha-panel-dev-template.js @@ -98,7 +98,6 @@ class HaPanelDevTemplate extends PolymerElement { `; } - static get is() { return 'ha-panel-dev-template'; } static get properties() { return { @@ -196,4 +195,4 @@ For loop example: } } -customElements.define(HaPanelDevTemplate.is, HaPanelDevTemplate); +customElements.define('ha-panel-dev-template', HaPanelDevTemplate); diff --git a/panels/hassio/ha-panel-hassio.js b/panels/hassio/ha-panel-hassio.js index 776fe19a61..76cc0bf36c 100644 --- a/panels/hassio/ha-panel-hassio.js +++ b/panels/hassio/ha-panel-hassio.js @@ -21,7 +21,6 @@ class HaPanelHassio extends > `; } - static get is() { return 'ha-panel-hassio'; } static get properties() { return { @@ -77,4 +76,4 @@ class HaPanelHassio extends } } -customElements.define(HaPanelHassio.is, HaPanelHassio); +customElements.define('ha-panel-hassio', HaPanelHassio); diff --git a/panels/history/ha-panel-history.js b/panels/history/ha-panel-history.js index daf124c02b..63d62e2f49 100644 --- a/panels/history/ha-panel-history.js +++ b/panels/history/ha-panel-history.js @@ -94,7 +94,6 @@ class HaPanelHistory extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-history'; } static get properties() { return { @@ -186,4 +185,4 @@ class HaPanelHistory extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaPanelHistory.is, HaPanelHistory); +customElements.define('ha-panel-history', HaPanelHistory); diff --git a/panels/iframe/ha-panel-iframe.js b/panels/iframe/ha-panel-iframe.js index c18b639496..fcd7a76bae 100644 --- a/panels/iframe/ha-panel-iframe.js +++ b/panels/iframe/ha-panel-iframe.js @@ -27,7 +27,6 @@ class HaPanelIframe extends PolymerElement { > `; } - static get is() { return 'ha-panel-iframe'; } static get properties() { return { @@ -46,4 +45,4 @@ class HaPanelIframe extends PolymerElement { } } -customElements.define(HaPanelIframe.is, HaPanelIframe); +customElements.define('ha-panel-iframe', HaPanelIframe); diff --git a/panels/kiosk/ha-panel-kiosk.js b/panels/kiosk/ha-panel-kiosk.js index ca0fc15811..b3fc5aea1e 100644 --- a/panels/kiosk/ha-panel-kiosk.js +++ b/panels/kiosk/ha-panel-kiosk.js @@ -15,7 +15,6 @@ class HaPanelKiosk extends PolymerElement { > `; } - static get is() { return 'ha-panel-kiosk'; } static get properties() { return { @@ -25,4 +24,4 @@ class HaPanelKiosk extends PolymerElement { } } -customElements.define(HaPanelKiosk.is, HaPanelKiosk); +customElements.define('ha-panel-kiosk', HaPanelKiosk); diff --git a/panels/logbook/ha-logbook-data.js b/panels/logbook/ha-logbook-data.js index dfb98cb88f..e02b8af722 100644 --- a/panels/logbook/ha-logbook-data.js +++ b/panels/logbook/ha-logbook-data.js @@ -4,8 +4,6 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; var DATE_CACHE = {}; class HaLogbookData extends PolymerElement { - static get is() { return 'ha-logbook-data'; } - static get properties() { return { hass: { @@ -74,5 +72,5 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; } } - customElements.define(HaLogbookData.is, HaLogbookData); + customElements.define('ha-logbook-data', HaLogbookData); } diff --git a/panels/logbook/ha-logbook.js b/panels/logbook/ha-logbook.js index c5d50e6bc1..79492c3b00 100644 --- a/panels/logbook/ha-logbook.js +++ b/panels/logbook/ha-logbook.js @@ -62,8 +62,6 @@ class HaLogbook extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-logbook'; } - static get properties() { return { hass: { @@ -87,4 +85,4 @@ class HaLogbook extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaLogbook.is, HaLogbook); +customElements.define('ha-logbook', HaLogbook); diff --git a/panels/logbook/ha-panel-logbook.js b/panels/logbook/ha-panel-logbook.js index cbfbfab52a..05c6f69b3f 100644 --- a/panels/logbook/ha-panel-logbook.js +++ b/panels/logbook/ha-panel-logbook.js @@ -86,7 +86,6 @@ class HaPanelLogbook extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-logbook'; } static get properties() { return { @@ -149,4 +148,4 @@ class HaPanelLogbook extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaPanelLogbook.is, HaPanelLogbook); +customElements.define('ha-panel-logbook', HaPanelLogbook); diff --git a/panels/mailbox/ha-panel-mailbox.js b/panels/mailbox/ha-panel-mailbox.js index aa40a3f89c..07fd142f5b 100644 --- a/panels/mailbox/ha-panel-mailbox.js +++ b/panels/mailbox/ha-panel-mailbox.js @@ -149,7 +149,6 @@ class HaPanelMailbox extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-panel-mailbox'; } static get properties() { return { @@ -266,4 +265,4 @@ class HaPanelMailbox extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaPanelMailbox.is, HaPanelMailbox); +customElements.define('ha-panel-mailbox', HaPanelMailbox); diff --git a/panels/map/ha-entity-marker.js b/panels/map/ha-entity-marker.js index 9d448af04c..b33dd5ee18 100644 --- a/panels/map/ha-entity-marker.js +++ b/panels/map/ha-entity-marker.js @@ -39,8 +39,6 @@ class HaEntityMarker extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-entity-marker'; } - static get properties() { return { hass: { @@ -77,4 +75,4 @@ class HaEntityMarker extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaEntityMarker.is, HaEntityMarker); +customElements.define('ha-entity-marker', HaEntityMarker); diff --git a/panels/map/ha-panel-map.js b/panels/map/ha-panel-map.js index c890203b6e..b1d9a17928 100644 --- a/panels/map/ha-panel-map.js +++ b/panels/map/ha-panel-map.js @@ -32,7 +32,6 @@ class HaPanelMap extends window.hassMixins.LocalizeMixin(PolymerElement) {
`; } - static get is() { return 'ha-panel-map'; } static get properties() { return { @@ -194,4 +193,4 @@ class HaPanelMap extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaPanelMap.is, HaPanelMap); +customElements.define('ha-panel-map', HaPanelMap); diff --git a/panels/shopping-list/ha-panel-shopping-list.js b/panels/shopping-list/ha-panel-shopping-list.js index cae4866c34..24228b4e0c 100644 --- a/panels/shopping-list/ha-panel-shopping-list.js +++ b/panels/shopping-list/ha-panel-shopping-list.js @@ -135,7 +135,6 @@ class HaPanelShoppingList extends window.hassMixins.LocalizeMixin(PolymerElement `; } - static get is() { return 'ha-panel-shopping-list'; } static get properties() { return { @@ -215,4 +214,4 @@ class HaPanelShoppingList extends window.hassMixins.LocalizeMixin(PolymerElement } } -customElements.define(HaPanelShoppingList.is, HaPanelShoppingList); +customElements.define('ha-panel-shopping-list', HaPanelShoppingList); diff --git a/src/auth/ha-auth-flow.js b/src/auth/ha-auth-flow.js index fd2bf549a5..814db1ceb4 100644 --- a/src/auth/ha-auth-flow.js +++ b/src/auth/ha-auth-flow.js @@ -31,7 +31,6 @@ class HaAuthFlow extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-auth-flow'; } static get properties() { return { authProvider: Object, @@ -134,4 +133,4 @@ class HaAuthFlow extends window.hassMixins.EventsMixin(PolymerElement) { }); } } -customElements.define(HaAuthFlow.is, HaAuthFlow); +customElements.define('ha-auth-flow', HaAuthFlow); diff --git a/src/auth/ha-authorize.js b/src/auth/ha-authorize.js index e583589ca9..a1490c7b97 100644 --- a/src/auth/ha-authorize.js +++ b/src/auth/ha-authorize.js @@ -29,7 +29,6 @@ class HaAuthorize extends PolymerElement { `; } - static get is() { return 'ha-authorize'; } static get properties() { return { _authProvider: { @@ -66,4 +65,4 @@ class HaAuthorize extends PolymerElement { this._authProvider = null; } } -customElements.define(HaAuthorize.is, HaAuthorize); +customElements.define('ha-authorize', HaAuthorize); diff --git a/src/auth/ha-pick-auth-provider.js b/src/auth/ha-pick-auth-provider.js index a805896d82..44c56246ab 100644 --- a/src/auth/ha-pick-auth-provider.js +++ b/src/auth/ha-pick-auth-provider.js @@ -37,7 +37,6 @@ class HaPickAuthProvider extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-pick-auth-provider'; } static get properties() { return { _state: { @@ -82,4 +81,4 @@ class HaPickAuthProvider extends window.hassMixins.EventsMixin(PolymerElement) { return a === b; } } -customElements.define(HaPickAuthProvider.is, HaPickAuthProvider); +customElements.define('ha-pick-auth-provider', HaPickAuthProvider); diff --git a/src/cards/ha-badges-card.js b/src/cards/ha-badges-card.js index e3a046683b..26756b1c09 100644 --- a/src/cards/ha-badges-card.js +++ b/src/cards/ha-badges-card.js @@ -18,7 +18,6 @@ class HaBadgesCard extends PolymerElement { `; } - static get is() { return 'ha-badges-card'; } static get properties() { return { hass: Object, @@ -26,4 +25,4 @@ class HaBadgesCard extends PolymerElement { }; } } -customElements.define(HaBadgesCard.is, HaBadgesCard); +customElements.define('ha-badges-card', HaBadgesCard); diff --git a/src/cards/ha-camera-card.js b/src/cards/ha-camera-card.js index 9fd1ec5c8b..a14ceab98c 100644 --- a/src/cards/ha-camera-card.js +++ b/src/cards/ha-camera-card.js @@ -59,7 +59,6 @@ import '../util/hass-mixins.js'; `; } - static get is() { return 'ha-camera-card'; } static get properties() { return { hass: Object, @@ -114,5 +113,5 @@ import '../util/hass-mixins.js'; return window.hassUtil.computeStateName(stateObj); } } - customElements.define(HaCameraCard.is, HaCameraCard); + customElements.define('ha-camera-card', HaCameraCard); } diff --git a/src/cards/ha-card-chooser.js b/src/cards/ha-card-chooser.js index fee29c15f9..aa0a04e73c 100644 --- a/src/cards/ha-card-chooser.js +++ b/src/cards/ha-card-chooser.js @@ -9,7 +9,6 @@ import './ha-plant-card.js'; import './ha-weather-card.js'; class HaCardChooser extends PolymerElement { - static get is() { return 'ha-card-chooser'; } static get properties() { return { cardData: { @@ -76,4 +75,4 @@ class HaCardChooser extends PolymerElement { } } } -customElements.define(HaCardChooser.is, HaCardChooser); +customElements.define('ha-card-chooser', HaCardChooser); diff --git a/src/cards/ha-entities-card.js b/src/cards/ha-entities-card.js index fd1561dab1..c5df278512 100644 --- a/src/cards/ha-entities-card.js +++ b/src/cards/ha-entities-card.js @@ -58,7 +58,6 @@ class HaEntitiesCard extends `; } - static get is() { return 'ha-entities-card'; } static get properties() { return { hass: Object, @@ -148,4 +147,4 @@ class HaEntitiesCard extends return canToggleCount > 1; } } -customElements.define(HaEntitiesCard.is, HaEntitiesCard); +customElements.define('ha-entities-card', HaEntitiesCard); diff --git a/src/cards/ha-history_graph-card.js b/src/cards/ha-history_graph-card.js index 10859fcd59..dcfbb275f4 100644 --- a/src/cards/ha-history_graph-card.js +++ b/src/cards/ha-history_graph-card.js @@ -44,7 +44,6 @@ class HaHistoryGraphCard extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-history_graph-card'; } static get properties() { return { hass: Object, @@ -106,4 +105,4 @@ class HaHistoryGraphCard extends window.hassMixins.EventsMixin(PolymerElement) { } } } -customElements.define(HaHistoryGraphCard.is, HaHistoryGraphCard); +customElements.define('ha-history_graph-card', HaHistoryGraphCard); diff --git a/src/cards/ha-media_player-card.js b/src/cards/ha-media_player-card.js index 6c50797aa6..1c096c00d5 100644 --- a/src/cards/ha-media_player-card.js +++ b/src/cards/ha-media_player-card.js @@ -181,7 +181,6 @@ class HaMediaPlayerCard extends `; } - static get is() { return 'ha-media_player-card'; } static get properties() { return { hass: Object, @@ -307,4 +306,4 @@ class HaMediaPlayerCard extends this.playerObj.togglePower(); } } -customElements.define(HaMediaPlayerCard.is, HaMediaPlayerCard); +customElements.define('ha-media_player-card', HaMediaPlayerCard); diff --git a/src/cards/ha-persistent_notification-card.js b/src/cards/ha-persistent_notification-card.js index d2836fe44d..2d4d55131a 100644 --- a/src/cards/ha-persistent_notification-card.js +++ b/src/cards/ha-persistent_notification-card.js @@ -48,7 +48,6 @@ class HaPersistentNotificationCard extends window.hassMixins.LocalizeMixin(Polym `; } - static get is() { return 'ha-persistent_notification-card'; } static get properties() { return { hass: Object, @@ -66,4 +65,4 @@ class HaPersistentNotificationCard extends window.hassMixins.LocalizeMixin(Polym this.hass.callApi('DELETE', 'states/' + this.stateObj.entity_id); } } -customElements.define(HaPersistentNotificationCard.is, HaPersistentNotificationCard); +customElements.define('ha-persistent_notification-card', HaPersistentNotificationCard); diff --git a/src/cards/ha-plant-card.js b/src/cards/ha-plant-card.js index 622db3841a..e7dc4d336c 100644 --- a/src/cards/ha-plant-card.js +++ b/src/cards/ha-plant-card.js @@ -49,7 +49,6 @@ class HaPlantCard extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-plant-card'; } static get properties() { return { hass: Object, @@ -105,4 +104,4 @@ class HaPlantCard extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaPlantCard.is, HaPlantCard); +customElements.define('ha-plant-card', HaPlantCard); diff --git a/src/cards/ha-weather-card.js b/src/cards/ha-weather-card.js index f28991a6e5..b5e07a1916 100644 --- a/src/cards/ha-weather-card.js +++ b/src/cards/ha-weather-card.js @@ -144,7 +144,6 @@ class HaWeatherCard extends `; } - static get is() { return 'ha-weather-card'; } static get properties() { return { hass: Object, @@ -237,4 +236,4 @@ class HaWeatherCard extends return date.toLocaleDateString(this.hass.selectedLanguage || this.hass.language, { weekday: 'short' }); } } -customElements.define(HaWeatherCard.is, HaWeatherCard); +customElements.define('ha-weather-card', HaWeatherCard); diff --git a/src/components/buttons/ha-call-api-button.js b/src/components/buttons/ha-call-api-button.js index bf0d0c4ce2..f8e1bb814a 100644 --- a/src/components/buttons/ha-call-api-button.js +++ b/src/components/buttons/ha-call-api-button.js @@ -11,8 +11,6 @@ class HaCallApiButton extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-call-api-button'; } - static get properties() { return { hass: Object, @@ -66,4 +64,4 @@ class HaCallApiButton extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaCallApiButton.is, HaCallApiButton); +customElements.define('ha-call-api-button', HaCallApiButton); diff --git a/src/components/buttons/ha-call-service-button.js b/src/components/buttons/ha-call-service-button.js index 6dd84cba57..f7626986de 100644 --- a/src/components/buttons/ha-call-service-button.js +++ b/src/components/buttons/ha-call-service-button.js @@ -11,8 +11,6 @@ class HaCallServiceButton extends window.hassMixins.EventsMixin(PolymerElement) `; } - static get is() { return 'ha-call-service-button'; } - static get properties() { return { hass: { @@ -63,4 +61,4 @@ class HaCallServiceButton extends window.hassMixins.EventsMixin(PolymerElement) } } -customElements.define(HaCallServiceButton.is, HaCallServiceButton); +customElements.define('ha-call-service-button', HaCallServiceButton); diff --git a/src/components/buttons/ha-progress-button.js b/src/components/buttons/ha-progress-button.js index 6dd8f19123..827c39b7d9 100644 --- a/src/components/buttons/ha-progress-button.js +++ b/src/components/buttons/ha-progress-button.js @@ -55,8 +55,6 @@ class HaProgressButton extends PolymerElement { `; } - static get is() { return 'ha-progress-button'; } - static get properties() { return { hass: { @@ -105,4 +103,4 @@ class HaProgressButton extends PolymerElement { } } -customElements.define(HaProgressButton.is, HaProgressButton); +customElements.define('ha-progress-button', HaProgressButton); diff --git a/src/components/domain-icon.js b/src/components/domain-icon.js index 874ee454f5..cd96177340 100644 --- a/src/components/domain-icon.js +++ b/src/components/domain-icon.js @@ -11,8 +11,6 @@ class DomainIcon extends PolymerElement { `; } - static get is() { return 'domain-icon'; } - static get properties() { return { domain: { @@ -32,4 +30,4 @@ class DomainIcon extends PolymerElement { } } -customElements.define(DomainIcon.is, DomainIcon); +customElements.define('domain-icon', DomainIcon); diff --git a/src/components/entity/ha-chart-base.js b/src/components/entity/ha-chart-base.js index 98bf9661b3..d62b4a7784 100644 --- a/src/components/entity/ha-chart-base.js +++ b/src/components/entity/ha-chart-base.js @@ -134,7 +134,7 @@ class HaChartBase extends mixinBehaviors([ get chart() { return this._chart; } - static get is() { return 'ha-chart-base'; } + static get properties() { return { data: Object, @@ -537,4 +537,4 @@ class HaChartBase extends mixinBehaviors([ return getColor; } } -customElements.define(HaChartBase.is, HaChartBase); +customElements.define('ha-chart-base', HaChartBase); diff --git a/src/components/entity/ha-entity-picker.js b/src/components/entity/ha-entity-picker.js index e356c32fb8..253459a43e 100644 --- a/src/components/entity/ha-entity-picker.js +++ b/src/components/entity/ha-entity-picker.js @@ -49,8 +49,6 @@ class HaEntityPicker extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-entity-picker'; } - static get properties() { return { allowCustomEntity: { @@ -136,4 +134,4 @@ class HaEntityPicker extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaEntityPicker.is, HaEntityPicker); +customElements.define('ha-entity-picker', HaEntityPicker); diff --git a/src/components/entity/ha-entity-toggle.js b/src/components/entity/ha-entity-toggle.js index 397a762b19..f0d7542b4a 100644 --- a/src/components/entity/ha-entity-toggle.js +++ b/src/components/entity/ha-entity-toggle.js @@ -36,8 +36,6 @@ class HaEntityToggle extends PolymerElement { `; } - static get is() { return 'ha-entity-toggle'; } - static get properties() { return { hass: Object, @@ -147,4 +145,4 @@ class HaEntityToggle extends PolymerElement { } } -customElements.define(HaEntityToggle.is, HaEntityToggle); +customElements.define('ha-entity-toggle', HaEntityToggle); diff --git a/src/components/entity/ha-state-icon.js b/src/components/entity/ha-state-icon.js index fc81c7cdbf..108ee4946c 100644 --- a/src/components/entity/ha-state-icon.js +++ b/src/components/entity/ha-state-icon.js @@ -11,8 +11,6 @@ class HaStateIcon extends PolymerElement { `; } - static get is() { return 'ha-state-icon'; } - static get properties() { return { stateObj: { @@ -26,4 +24,4 @@ class HaStateIcon extends PolymerElement { } } -customElements.define(HaStateIcon.is, HaStateIcon); +customElements.define('ha-state-icon', HaStateIcon); diff --git a/src/components/entity/ha-state-label-badge.js b/src/components/entity/ha-state-label-badge.js index 7833fdc6f7..38c019a7be 100644 --- a/src/components/entity/ha-state-label-badge.js +++ b/src/components/entity/ha-state-label-badge.js @@ -55,8 +55,6 @@ class HaStateLabelBadge extends `; } - static get is() { return 'ha-state-label-badge'; } - static get properties() { return { hass: Object, @@ -203,4 +201,4 @@ class HaStateLabelBadge extends } } -customElements.define(HaStateLabelBadge.is, HaStateLabelBadge); +customElements.define('ha-state-label-badge', HaStateLabelBadge); diff --git a/src/components/entity/state-badge.js b/src/components/entity/state-badge.js index ba16bad9d5..c0b6e9dc7b 100644 --- a/src/components/entity/state-badge.js +++ b/src/components/entity/state-badge.js @@ -43,7 +43,6 @@ class StateBadge extends PolymerElement { `; } - static get is() { return 'state-badge'; } static get properties() { return { stateObj: { @@ -87,4 +86,4 @@ class StateBadge extends PolymerElement { Object.assign(this.style, hostStyle); } } -customElements.define(StateBadge.is, StateBadge); +customElements.define('state-badge', StateBadge); diff --git a/src/components/entity/state-info.js b/src/components/entity/state-info.js index 667a1c7452..e752780819 100644 --- a/src/components/entity/state-info.js +++ b/src/components/entity/state-info.js @@ -58,8 +58,6 @@ class StateInfo extends PolymerElement { `; } - static get is() { return 'state-info'; } - static get properties() { return { detailed: { @@ -82,4 +80,4 @@ class StateInfo extends PolymerElement { } } -customElements.define(StateInfo.is, StateInfo); +customElements.define('state-info', StateInfo); diff --git a/src/components/ha-attributes.js b/src/components/ha-attributes.js index c05b9dad31..9e86391b0e 100644 --- a/src/components/ha-attributes.js +++ b/src/components/ha-attributes.js @@ -30,8 +30,6 @@ class HaAttributes extends PolymerElement { `; } - static get is() { return 'ha-attributes'; } - static get properties() { return { stateObj: { @@ -79,4 +77,4 @@ class HaAttributes extends PolymerElement { } } -customElements.define(HaAttributes.is, HaAttributes); +customElements.define('ha-attributes', HaAttributes); diff --git a/src/components/ha-card.js b/src/components/ha-card.js index b812c40451..3515542a95 100644 --- a/src/components/ha-card.js +++ b/src/components/ha-card.js @@ -29,8 +29,6 @@ class HaCard extends PolymerElement { `; } - static get is() { return 'ha-card'; } - static get properties() { return { header: { @@ -40,4 +38,4 @@ class HaCard extends PolymerElement { } } -customElements.define(HaCard.is, HaCard); +customElements.define('ha-card', HaCard); diff --git a/src/components/ha-cards.js b/src/components/ha-cards.js index 1637f7bf34..2603c1431b 100644 --- a/src/components/ha-cards.js +++ b/src/components/ha-cards.js @@ -145,7 +145,6 @@ import './ha-demo-badge.js'; `; } - static get is() { return 'ha-cards'; } static get properties() { return { hass: Object, @@ -364,5 +363,5 @@ import './ha-demo-badge.js'; return cards; } } - customElements.define(HaCards.is, HaCards); + customElements.define('ha-cards', HaCards); } diff --git a/src/components/ha-climate-control.js b/src/components/ha-climate-control.js index 97e641b3d5..95e178515d 100644 --- a/src/components/ha-climate-control.js +++ b/src/components/ha-climate-control.js @@ -48,8 +48,6 @@ class HaClimateControl extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-climate-control'; } - static get properties() { return { value: { @@ -123,4 +121,4 @@ class HaClimateControl extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaClimateControl.is, HaClimateControl); +customElements.define('ha-climate-control', HaClimateControl); diff --git a/src/components/ha-climate-state.js b/src/components/ha-climate-state.js index eab9ada201..ba897ebebe 100644 --- a/src/components/ha-climate-state.js +++ b/src/components/ha-climate-state.js @@ -41,8 +41,6 @@ class HaClimateState extends PolymerElement { `; } - static get is() { return 'ha-climate-state'; } - static get properties() { return { stateObj: Object, @@ -80,4 +78,4 @@ class HaClimateState extends PolymerElement { return ''; } } -customElements.define(HaClimateState.is, HaClimateState); +customElements.define('ha-climate-state', HaClimateState); diff --git a/src/components/ha-color-picker.js b/src/components/ha-color-picker.js index be1ddefaf5..071693db64 100644 --- a/src/components/ha-color-picker.js +++ b/src/components/ha-color-picker.js @@ -78,8 +78,6 @@ class HaColorPicker extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-color-picker'; } - static get properties() { return { hsColor: { @@ -525,4 +523,4 @@ class HaColorPicker extends window.hassMixins.EventsMixin(PolymerElement) { svgElement.appendChild(svgElement.tooltip); } } -customElements.define(HaColorPicker.is, HaColorPicker); +customElements.define('ha-color-picker', HaColorPicker); diff --git a/src/components/ha-combo-box.js b/src/components/ha-combo-box.js index 9a0ada87ce..2075c82a4a 100644 --- a/src/components/ha-combo-box.js +++ b/src/components/ha-combo-box.js @@ -36,8 +36,6 @@ class HaComboBox extends PolymerElement { `; } - static get is() { return 'ha-combo-box'; } - static get properties() { return { allowCustomValue: Boolean, @@ -83,4 +81,4 @@ class HaComboBox extends PolymerElement { } } -customElements.define(HaComboBox.is, HaComboBox); +customElements.define('ha-combo-box', HaComboBox); diff --git a/src/components/ha-cover-controls.js b/src/components/ha-cover-controls.js index c429654142..24655f0387 100644 --- a/src/components/ha-cover-controls.js +++ b/src/components/ha-cover-controls.js @@ -24,8 +24,6 @@ class HaCoverControls extends PolymerElement { `; } - static get is() { return 'ha-cover-controls'; } - static get properties() { return { hass: { @@ -65,4 +63,4 @@ class HaCoverControls extends PolymerElement { } } -customElements.define(HaCoverControls.is, HaCoverControls); +customElements.define('ha-cover-controls', HaCoverControls); diff --git a/src/components/ha-cover-tilt-controls.js b/src/components/ha-cover-tilt-controls.js index 3e9b04f6a9..2875f910a7 100644 --- a/src/components/ha-cover-tilt-controls.js +++ b/src/components/ha-cover-tilt-controls.js @@ -23,8 +23,6 @@ class HaCoverTiltControls extends PolymerElement { `; } - static get is() { return 'ha-cover-tilt-controls'; } - static get properties() { return { hass: { @@ -64,4 +62,4 @@ class HaCoverTiltControls extends PolymerElement { } } -customElements.define(HaCoverTiltControls.is, HaCoverTiltControls); +customElements.define('ha-cover-tilt-controls', HaCoverTiltControls); diff --git a/src/components/ha-demo-badge.js b/src/components/ha-demo-badge.js index 38e98e1166..89284b5460 100644 --- a/src/components/ha-demo-badge.js +++ b/src/components/ha-demo-badge.js @@ -15,8 +15,6 @@ class HaDemoBadge extends PolymerElement { `; } - - static get is() { return 'ha-demo-badge'; } } -customElements.define(HaDemoBadge.is, HaDemoBadge); +customElements.define('ha-demo-badge', HaDemoBadge); diff --git a/src/components/ha-form.js b/src/components/ha-form.js index 311160dae9..eab926c558 100644 --- a/src/components/ha-form.js +++ b/src/components/ha-form.js @@ -70,8 +70,6 @@ class HaForm extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-form'; } - static get properties() { return { data: { @@ -118,4 +116,4 @@ class HaForm extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaForm.is, HaForm); +customElements.define('ha-form', HaForm); diff --git a/src/components/ha-label-badge.js b/src/components/ha-label-badge.js index c70f0ba3aa..423d08cb3b 100644 --- a/src/components/ha-label-badge.js +++ b/src/components/ha-label-badge.js @@ -95,7 +95,6 @@ class HaLabelBadge extends PolymerElement { `; } - static get is() { return 'ha-label-badge'; } static get properties() { return { value: String, @@ -134,4 +133,4 @@ class HaLabelBadge extends PolymerElement { this.$.badge.style.backgroundImage = newVal ? 'url(' + newVal + ')' : ''; } } -customElements.define(HaLabelBadge.is, HaLabelBadge); +customElements.define('ha-label-badge', HaLabelBadge); diff --git a/src/components/ha-labeled-slider.js b/src/components/ha-labeled-slider.js index 84f7704570..4f8ffa9544 100644 --- a/src/components/ha-labeled-slider.js +++ b/src/components/ha-labeled-slider.js @@ -42,8 +42,6 @@ class HaLabeledSlider extends PolymerElement { `; } - static get is() { return 'ha-labeled-slider'; } - static get properties() { return { caption: String, @@ -60,4 +58,4 @@ class HaLabeledSlider extends PolymerElement { } } -customElements.define(HaLabeledSlider.is, HaLabeledSlider); +customElements.define('ha-labeled-slider', HaLabeledSlider); diff --git a/src/components/ha-markdown.js b/src/components/ha-markdown.js index 2b8818a596..f12f529a2f 100644 --- a/src/components/ha-markdown.js +++ b/src/components/ha-markdown.js @@ -7,8 +7,6 @@ let loaded = null; * @appliesMixin window.hassMixins.EventsMixin */ class HaMarkdown extends window.hassMixins.EventsMixin(PolymerElement) { - static get is() { return 'ha-markdown'; } - static get properties() { return { content: { @@ -72,4 +70,4 @@ class HaMarkdown extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaMarkdown.is, HaMarkdown); +customElements.define('ha-markdown', HaMarkdown); diff --git a/src/components/ha-menu-button.js b/src/components/ha-menu-button.js index f6381562dc..216db65a91 100644 --- a/src/components/ha-menu-button.js +++ b/src/components/ha-menu-button.js @@ -16,8 +16,6 @@ class HaMenuButton extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-menu-button'; } - static get properties() { return { narrow: { @@ -42,4 +40,4 @@ class HaMenuButton extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaMenuButton.is, HaMenuButton); +customElements.define('ha-menu-button', HaMenuButton); diff --git a/src/components/ha-paper-slider.js b/src/components/ha-paper-slider.js index 6572c23281..2e4b530a68 100644 --- a/src/components/ha-paper-slider.js +++ b/src/components/ha-paper-slider.js @@ -71,8 +71,6 @@ document.head.appendChild(documentContainer.content); let myTemplate; class HaPaperSlider extends PaperSliderClass { - static get is() { return 'ha-paper-slider'; } - static get template() { if (!myTemplate) { // Retrieve this element's dom-module template @@ -87,5 +85,5 @@ document.head.appendChild(documentContainer.content); return myTemplate; } } - customElements.define(HaPaperSlider.is, HaPaperSlider); + customElements.define('ha-paper-slider', HaPaperSlider); } diff --git a/src/components/ha-push-notifications-toggle.js b/src/components/ha-push-notifications-toggle.js index d9e08d5804..7a11d82730 100644 --- a/src/components/ha-push-notifications-toggle.js +++ b/src/components/ha-push-notifications-toggle.js @@ -11,8 +11,6 @@ class HaPushNotificationsToggle extends window.hassMixins.EventsMixin(PolymerEle `; } - static get is() { return 'ha-push-notifications-toggle'; } - static get properties() { return { hass: { type: Object, value: null }, @@ -122,4 +120,4 @@ class HaPushNotificationsToggle extends window.hassMixins.EventsMixin(PolymerEle } } -customElements.define(HaPushNotificationsToggle.is, HaPushNotificationsToggle); +customElements.define('ha-push-notifications-toggle', HaPushNotificationsToggle); diff --git a/src/components/ha-relative-time.js b/src/components/ha-relative-time.js index fc08bbe4bd..f5c2539e73 100644 --- a/src/components/ha-relative-time.js +++ b/src/components/ha-relative-time.js @@ -4,8 +4,6 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; import relativeTime from '../../js/common/datetime/relative_time.js'; class HaRelativeTime extends PolymerElement { - static get is() { return 'ha-relative-time'; } - static get properties() { return { datetime: { @@ -59,4 +57,4 @@ class HaRelativeTime extends PolymerElement { } } -customElements.define(HaRelativeTime.is, HaRelativeTime); +customElements.define('ha-relative-time', HaRelativeTime); diff --git a/src/components/ha-service-description.js b/src/components/ha-service-description.js index e57c4a6fab..99dea3b006 100644 --- a/src/components/ha-service-description.js +++ b/src/components/ha-service-description.js @@ -8,8 +8,6 @@ class HaServiceDescription extends PolymerElement { `; } - static get is() { return 'ha-service-description'; } - static get properties() { return { hass: Object, @@ -27,4 +25,4 @@ class HaServiceDescription extends PolymerElement { } } -customElements.define(HaServiceDescription.is, HaServiceDescription); +customElements.define('ha-service-description', HaServiceDescription); diff --git a/src/components/ha-service-picker.js b/src/components/ha-service-picker.js index 7cb2512e1b..e7e79d6c15 100644 --- a/src/components/ha-service-picker.js +++ b/src/components/ha-service-picker.js @@ -14,8 +14,6 @@ class HaServicePicker extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'ha-service-picker'; } - static get properties() { return { hass: { @@ -51,4 +49,4 @@ class HaServicePicker extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(HaServicePicker.is, HaServicePicker); +customElements.define('ha-service-picker', HaServicePicker); diff --git a/src/components/ha-sidebar.js b/src/components/ha-sidebar.js index b4374b547a..3a4dd6270d 100644 --- a/src/components/ha-sidebar.js +++ b/src/components/ha-sidebar.js @@ -142,8 +142,6 @@ class HaSidebar extends `; } - static get is() { return 'ha-sidebar'; } - static get properties() { return { hass: { @@ -253,4 +251,4 @@ class HaSidebar extends } } -customElements.define(HaSidebar.is, HaSidebar); +customElements.define('ha-sidebar', HaSidebar); diff --git a/src/components/ha-start-voice-button.js b/src/components/ha-start-voice-button.js index be0948ab7f..107c9afbef 100644 --- a/src/components/ha-start-voice-button.js +++ b/src/components/ha-start-voice-button.js @@ -11,8 +11,6 @@ class HaStartVoiceButton extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'ha-start-voice-button'; } - static get properties() { return { hass: { @@ -38,4 +36,4 @@ class HaStartVoiceButton extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(HaStartVoiceButton.is, HaStartVoiceButton); +customElements.define('ha-start-voice-button', HaStartVoiceButton); diff --git a/src/components/hassio-card-content.js b/src/components/hassio-card-content.js index 6540a7e7eb..07d9eb91ab 100644 --- a/src/components/hassio-card-content.js +++ b/src/components/hassio-card-content.js @@ -35,7 +35,7 @@ class HassioCardContent extends PolymerElement { .addition { color: var(--secondary-text-color); overflow: hidden; - position: relative; + position: relative; height: 2.4em; line-height: 1.2em; } @@ -58,8 +58,6 @@ class HassioCardContent extends PolymerElement { `; } - static get is() { return 'hassio-card-content'; } - static get properties() { return { title: String, @@ -74,4 +72,4 @@ class HassioCardContent extends PolymerElement { }; } } -customElements.define(HassioCardContent.is, HassioCardContent); +customElements.define('hassio-card-content', HassioCardContent); diff --git a/src/components/state-history-chart-line.js b/src/components/state-history-chart-line.js index 32f265345e..4a0f2cd583 100644 --- a/src/components/state-history-chart-line.js +++ b/src/components/state-history-chart-line.js @@ -19,7 +19,6 @@ class StateHistoryChartLine extends PolymerElement { `; } - static get is() { return 'state-history-chart-line'; } static get properties() { return { chartData: Object, @@ -295,4 +294,4 @@ class StateHistoryChartLine extends PolymerElement { this.chartData = chartOptions; } } -customElements.define(StateHistoryChartLine.is, StateHistoryChartLine); +customElements.define('state-history-chart-line', StateHistoryChartLine); diff --git a/src/components/state-history-chart-timeline.js b/src/components/state-history-chart-timeline.js index fa10572327..da90f40c98 100644 --- a/src/components/state-history-chart-timeline.js +++ b/src/components/state-history-chart-timeline.js @@ -22,7 +22,6 @@ class StateHistoryChartTimeline extends PolymerElement { `; } - static get is() { return 'state-history-chart-timeline'; } static get properties() { return { hass: { @@ -191,4 +190,4 @@ class StateHistoryChartTimeline extends PolymerElement { this.chartData = chartOptions; } } -customElements.define(StateHistoryChartTimeline.is, StateHistoryChartTimeline); +customElements.define('state-history-chart-timeline', StateHistoryChartTimeline); diff --git a/src/components/state-history-charts.js b/src/components/state-history-charts.js index 79a05955d2..f0dc16453e 100644 --- a/src/components/state-history-charts.js +++ b/src/components/state-history-charts.js @@ -40,7 +40,6 @@ class StateHistoryCharts extends PolymerElement { `; } - static get is() { return 'state-history-charts'; } static get properties() { return { hass: Object, @@ -82,4 +81,4 @@ class StateHistoryCharts extends PolymerElement { return upToNow ? new Date() : endTime; } } -customElements.define(StateHistoryCharts.is, StateHistoryCharts); +customElements.define('state-history-charts', StateHistoryCharts); diff --git a/src/data/ha-state-history-data.js b/src/data/ha-state-history-data.js index 24a6a365cd..e0f930c68b 100644 --- a/src/data/ha-state-history-data.js +++ b/src/data/ha-state-history-data.js @@ -99,7 +99,6 @@ import '../util/hass-util.js'; * @appliesMixin window.hassMixins.LocalizeMixin */ class HaStateHistoryData extends window.hassMixins.LocalizeMixin(PolymerElement) { - static get is() { return 'ha-state-history-data'; } static get properties() { return { hass: { @@ -382,5 +381,5 @@ import '../util/hass-util.js'; return prom; } } - customElements.define(HaStateHistoryData.is, HaStateHistoryData); + customElements.define('ha-state-history-data', HaStateHistoryData); } diff --git a/src/dialogs/ha-more-info-dialog.js b/src/dialogs/ha-more-info-dialog.js index 20fdd41cb6..b96e5b6c30 100644 --- a/src/dialogs/ha-more-info-dialog.js +++ b/src/dialogs/ha-more-info-dialog.js @@ -74,7 +74,6 @@ class HaMoreInfoDialog extends window.hassMixins.DialogMixin(PolymerElement) { `; } - static get is() { return 'ha-more-info-dialog'; } static get properties() { return { hass: Object, @@ -162,4 +161,4 @@ class HaMoreInfoDialog extends window.hassMixins.DialogMixin(PolymerElement) { this.notifyResize(); } } -customElements.define(HaMoreInfoDialog.is, HaMoreInfoDialog); +customElements.define('ha-more-info-dialog', HaMoreInfoDialog); diff --git a/src/dialogs/ha-voice-command-dialog.js b/src/dialogs/ha-voice-command-dialog.js index a10f19f6e4..f884a489a8 100644 --- a/src/dialogs/ha-voice-command-dialog.js +++ b/src/dialogs/ha-voice-command-dialog.js @@ -127,8 +127,6 @@ class HaVoiceCommandDialog extends window.hassMixins.DialogMixin(PolymerElement) `; } - static get is() { return 'ha-voice-command-dialog'; } - static get properties() { return { hass: Object, @@ -242,4 +240,4 @@ class HaVoiceCommandDialog extends window.hassMixins.DialogMixin(PolymerElement) } } -customElements.define(HaVoiceCommandDialog.is, HaVoiceCommandDialog); +customElements.define('ha-voice-command-dialog', HaVoiceCommandDialog); diff --git a/src/dialogs/more-info/controls/more-info-alarm_control_panel.js b/src/dialogs/more-info/controls/more-info-alarm_control_panel.js index b5d5116f88..bf6d55d8ee 100644 --- a/src/dialogs/more-info/controls/more-info-alarm_control_panel.js +++ b/src/dialogs/more-info/controls/more-info-alarm_control_panel.js @@ -22,8 +22,6 @@ class MoreInfoAlarmControlPanel extends window.hassMixins.EventsMixin(PolymerEle `; } - static get is() { return 'more-info-alarm_control_panel'; } - static get properties() { return { hass: { @@ -119,4 +117,4 @@ class MoreInfoAlarmControlPanel extends window.hassMixins.EventsMixin(PolymerEle } } -customElements.define(MoreInfoAlarmControlPanel.is, MoreInfoAlarmControlPanel); +customElements.define('more-info-alarm_control_panel', MoreInfoAlarmControlPanel); diff --git a/src/dialogs/more-info/controls/more-info-automation.js b/src/dialogs/more-info/controls/more-info-automation.js index c2b793afc5..8f65873f5d 100644 --- a/src/dialogs/more-info/controls/more-info-automation.js +++ b/src/dialogs/more-info/controls/more-info-automation.js @@ -26,8 +26,6 @@ class MoreInfoAutomation extends PolymerElement { `; } - static get is() { return 'more-info-automation'; } - static get properties() { return { hass: { @@ -47,4 +45,4 @@ class MoreInfoAutomation extends PolymerElement { } } -customElements.define(MoreInfoAutomation.is, MoreInfoAutomation); +customElements.define('more-info-automation', MoreInfoAutomation); diff --git a/src/dialogs/more-info/controls/more-info-camera.js b/src/dialogs/more-info/controls/more-info-camera.js index 4a8cfa6653..5b86f5361a 100644 --- a/src/dialogs/more-info/controls/more-info-camera.js +++ b/src/dialogs/more-info/controls/more-info-camera.js @@ -20,8 +20,6 @@ class MoreInfoCamera extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'more-info-camera'; } - static get properties() { return { hass: { @@ -69,4 +67,4 @@ class MoreInfoCamera extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(MoreInfoCamera.is, MoreInfoCamera); +customElements.define('more-info-camera', MoreInfoCamera); diff --git a/src/dialogs/more-info/controls/more-info-climate.js b/src/dialogs/more-info/controls/more-info-climate.js index 0d6f4d2312..ebb0de90d2 100644 --- a/src/dialogs/more-info/controls/more-info-climate.js +++ b/src/dialogs/more-info/controls/more-info-climate.js @@ -206,8 +206,6 @@ class MoreInfoClimate extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'more-info-climate'; } - static get properties() { return { hass: { @@ -458,4 +456,4 @@ class MoreInfoClimate extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(MoreInfoClimate.is, MoreInfoClimate); +customElements.define('more-info-climate', MoreInfoClimate); diff --git a/src/dialogs/more-info/controls/more-info-configurator.js b/src/dialogs/more-info/controls/more-info-configurator.js index ab97fb6e76..2f50903f60 100644 --- a/src/dialogs/more-info/controls/more-info-configurator.js +++ b/src/dialogs/more-info/controls/more-info-configurator.js @@ -74,8 +74,6 @@ class MoreInfoConfigurator extends PolymerElement { `; } - static get is() { return 'more-info-configurator'; } - static get properties() { return { stateObj: { @@ -132,4 +130,4 @@ class MoreInfoConfigurator extends PolymerElement { } } -customElements.define(MoreInfoConfigurator.is, MoreInfoConfigurator); +customElements.define('more-info-configurator', MoreInfoConfigurator); diff --git a/src/dialogs/more-info/controls/more-info-content.js b/src/dialogs/more-info/controls/more-info-content.js index 3692a24a0b..d834a93182 100644 --- a/src/dialogs/more-info/controls/more-info-content.js +++ b/src/dialogs/more-info/controls/more-info-content.js @@ -21,8 +21,6 @@ import './more-info-vacuum.js'; import './more-info-weather.js'; class MoreInfoContent extends PolymerElement { - static get is() { return 'more-info-content'; } - static get properties() { return { hass: Object, @@ -67,4 +65,4 @@ class MoreInfoContent extends PolymerElement { } } -customElements.define(MoreInfoContent.is, MoreInfoContent); +customElements.define('more-info-content', MoreInfoContent); diff --git a/src/dialogs/more-info/controls/more-info-cover.js b/src/dialogs/more-info/controls/more-info-cover.js index 8099aa8cf3..ba2719924b 100644 --- a/src/dialogs/more-info/controls/more-info-cover.js +++ b/src/dialogs/more-info/controls/more-info-cover.js @@ -51,8 +51,6 @@ import '../../../util/cover-model.js'; `; } - static get is() { return 'more-info-cover'; } - static get properties() { return { hass: { @@ -110,5 +108,5 @@ import '../../../util/cover-model.js'; } } - customElements.define(MoreInfoCover.is, MoreInfoCover); + customElements.define('more-info-cover', MoreInfoCover); } diff --git a/src/dialogs/more-info/controls/more-info-default.js b/src/dialogs/more-info/controls/more-info-default.js index c67376ae59..a633e2c52b 100644 --- a/src/dialogs/more-info/controls/more-info-default.js +++ b/src/dialogs/more-info/controls/more-info-default.js @@ -10,8 +10,6 @@ class MoreInfoDefault extends PolymerElement { `; } - static get is() { return 'more-info-default'; } - static get properties() { return { stateObj: { @@ -21,4 +19,4 @@ class MoreInfoDefault extends PolymerElement { } } -customElements.define(MoreInfoDefault.is, MoreInfoDefault); +customElements.define('more-info-default', MoreInfoDefault); diff --git a/src/dialogs/more-info/controls/more-info-fan.js b/src/dialogs/more-info/controls/more-info-fan.js index 900f4d6f30..b281779cff 100644 --- a/src/dialogs/more-info/controls/more-info-fan.js +++ b/src/dialogs/more-info/controls/more-info-fan.js @@ -69,8 +69,6 @@ class MoreInfoFan extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'more-info-fan'; } - static get properties() { return { hass: { @@ -163,4 +161,4 @@ class MoreInfoFan extends window.hassMixins.EventsMixin(PolymerElement) { } } -customElements.define(MoreInfoFan.is, MoreInfoFan); +customElements.define('more-info-fan', MoreInfoFan); diff --git a/src/dialogs/more-info/controls/more-info-group.js b/src/dialogs/more-info/controls/more-info-group.js index c58096bd40..4d79329b84 100644 --- a/src/dialogs/more-info/controls/more-info-group.js +++ b/src/dialogs/more-info/controls/more-info-group.js @@ -26,8 +26,6 @@ class MoreInfoGroup extends PolymerElement { `; } - static get is() { return 'more-info-group'; } - static get properties() { return { hass: { @@ -105,4 +103,4 @@ class MoreInfoGroup extends PolymerElement { } } -customElements.define(MoreInfoGroup.is, MoreInfoGroup); +customElements.define('more-info-group', MoreInfoGroup); diff --git a/src/dialogs/more-info/controls/more-info-history_graph.js b/src/dialogs/more-info/controls/more-info-history_graph.js index fd7fe69e51..ad8cad1c88 100644 --- a/src/dialogs/more-info/controls/more-info-history_graph.js +++ b/src/dialogs/more-info/controls/more-info-history_graph.js @@ -19,7 +19,6 @@ class MoreInfoHistoryGraph extends PolymerElement { `; } - static get is() { return 'more-info-history_graph'; } static get properties() { return { hass: Object, @@ -27,4 +26,4 @@ class MoreInfoHistoryGraph extends PolymerElement { }; } } -customElements.define(MoreInfoHistoryGraph.is, MoreInfoHistoryGraph); +customElements.define('more-info-history_graph', MoreInfoHistoryGraph); diff --git a/src/dialogs/more-info/controls/more-info-input_datetime.js b/src/dialogs/more-info/controls/more-info-input_datetime.js index 6a700df7c9..0015954c43 100644 --- a/src/dialogs/more-info/controls/more-info-input_datetime.js +++ b/src/dialogs/more-info/controls/more-info-input_datetime.js @@ -29,10 +29,6 @@ class DatetimeInput extends PolymerElement { `; } - static get is() { - return 'more-info-input_datetime'; - } - constructor() { super(); this.is_ready = false; @@ -158,4 +154,4 @@ class DatetimeInput extends PolymerElement { } } -customElements.define(DatetimeInput.is, DatetimeInput); +customElements.define('more-info-input_datetime', DatetimeInput); diff --git a/src/dialogs/more-info/controls/more-info-light.js b/src/dialogs/more-info/controls/more-info-light.js index faeabc7477..2bcf79b52b 100644 --- a/src/dialogs/more-info/controls/more-info-light.js +++ b/src/dialogs/more-info/controls/more-info-light.js @@ -106,8 +106,6 @@ import '../../../util/hass-mixins.js'; `; } - static get is() { return 'more-info-light'; } - static get properties() { return { hass: { @@ -257,5 +255,5 @@ import '../../../util/hass-mixins.js'; } } - customElements.define(MoreInfoLight.is, MoreInfoLight); + customElements.define('more-info-light', MoreInfoLight); } diff --git a/src/dialogs/more-info/controls/more-info-lock.js b/src/dialogs/more-info/controls/more-info-lock.js index 713e035347..999d64967a 100644 --- a/src/dialogs/more-info/controls/more-info-lock.js +++ b/src/dialogs/more-info/controls/more-info-lock.js @@ -23,8 +23,6 @@ class MoreInfoLock extends PolymerElement { `; } - static get is() { return 'more-info-lock'; } - static get properties() { return { hass: { @@ -64,4 +62,4 @@ class MoreInfoLock extends PolymerElement { } } -customElements.define(MoreInfoLock.is, MoreInfoLock); +customElements.define('more-info-lock', MoreInfoLock); diff --git a/src/dialogs/more-info/controls/more-info-media_player.js b/src/dialogs/more-info/controls/more-info-media_player.js index a17fd46b41..18d4625106 100644 --- a/src/dialogs/more-info/controls/more-info-media_player.js +++ b/src/dialogs/more-info/controls/more-info-media_player.js @@ -99,8 +99,6 @@ import '../../../util/hass-mixins.js'; `; } - static get is() { return 'more-info-media_player'; } - static get properties() { return { hass: Object, @@ -282,5 +280,5 @@ import '../../../util/hass-mixins.js'; } } - customElements.define(MoreInfoMediaPlayer.is, MoreInfoMediaPlayer); + customElements.define('more-info-media_player', MoreInfoMediaPlayer); } diff --git a/src/dialogs/more-info/controls/more-info-script.js b/src/dialogs/more-info/controls/more-info-script.js index 2f797ff56d..9075524927 100644 --- a/src/dialogs/more-info/controls/more-info-script.js +++ b/src/dialogs/more-info/controls/more-info-script.js @@ -16,8 +16,6 @@ class MoreInfoScript extends PolymerElement { `; } - static get is() { return 'more-info-script'; } - static get properties() { return { stateObj: { @@ -27,4 +25,4 @@ class MoreInfoScript extends PolymerElement { } } -customElements.define(MoreInfoScript.is, MoreInfoScript); +customElements.define('more-info-script', MoreInfoScript); diff --git a/src/dialogs/more-info/controls/more-info-sun.js b/src/dialogs/more-info/controls/more-info-sun.js index 63e155c90c..38c1571a25 100644 --- a/src/dialogs/more-info/controls/more-info-sun.js +++ b/src/dialogs/more-info/controls/more-info-sun.js @@ -25,8 +25,6 @@ class MoreInfoSun extends PolymerElement { `; } - static get is() { return 'more-info-sun'; } - static get properties() { return { stateObj: { @@ -70,4 +68,4 @@ class MoreInfoSun extends PolymerElement { } } -customElements.define(MoreInfoSun.is, MoreInfoSun); +customElements.define('more-info-sun', MoreInfoSun); diff --git a/src/dialogs/more-info/controls/more-info-updater.js b/src/dialogs/more-info/controls/more-info-updater.js index ebaa2c0442..54c546e3ed 100644 --- a/src/dialogs/more-info/controls/more-info-updater.js +++ b/src/dialogs/more-info/controls/more-info-updater.js @@ -16,8 +16,6 @@ class MoreInfoUpdater extends PolymerElement { `; } - static get is() { return 'more-info-updater'; } - static get properties() { return { stateObj: { @@ -32,4 +30,4 @@ class MoreInfoUpdater extends PolymerElement { } } -customElements.define(MoreInfoUpdater.is, MoreInfoUpdater); +customElements.define('more-info-updater', MoreInfoUpdater); diff --git a/src/dialogs/more-info/controls/more-info-vacuum.js b/src/dialogs/more-info/controls/more-info-vacuum.js index 073fdba2db..65e8cbccd4 100644 --- a/src/dialogs/more-info/controls/more-info-vacuum.js +++ b/src/dialogs/more-info/controls/more-info-vacuum.js @@ -78,8 +78,6 @@ class MoreInfoVacuum extends PolymerElement { `; } - static get is() { return 'more-info-vacuum'; } - static get properties() { return { hass: { @@ -192,4 +190,4 @@ class MoreInfoVacuum extends PolymerElement { } } -customElements.define(MoreInfoVacuum.is, MoreInfoVacuum); +customElements.define('more-info-vacuum', MoreInfoVacuum); diff --git a/src/dialogs/more-info/controls/more-info-weather.js b/src/dialogs/more-info/controls/more-info-weather.js index 09bca29e4b..67b0fa9e9e 100644 --- a/src/dialogs/more-info/controls/more-info-weather.js +++ b/src/dialogs/more-info/controls/more-info-weather.js @@ -103,8 +103,6 @@ class MoreInfoWeather extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'more-info-weather'; } - static get properties() { return { hass: Object, @@ -182,4 +180,4 @@ class MoreInfoWeather extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(MoreInfoWeather.is, MoreInfoWeather); +customElements.define('more-info-weather', MoreInfoWeather); diff --git a/src/dialogs/more-info/more-info-controls.js b/src/dialogs/more-info/more-info-controls.js index 4afaf69ede..f9cb02e0b0 100644 --- a/src/dialogs/more-info/more-info-controls.js +++ b/src/dialogs/more-info/more-info-controls.js @@ -73,7 +73,6 @@ import './controls/more-info-content.js'; `; } - static get is() { return 'more-info-controls'; } static get properties() { return { hass: Object, @@ -151,5 +150,5 @@ import './controls/more-info-content.js'; this.fire('more-info-page', { page: 'settings' }); } } - customElements.define(MoreInfoControls.is, MoreInfoControls); + customElements.define('more-info-controls', MoreInfoControls); } diff --git a/src/dialogs/more-info/more-info-settings.js b/src/dialogs/more-info/more-info-settings.js index ad48dd46ac..a17eaa6f0d 100644 --- a/src/dialogs/more-info/more-info-settings.js +++ b/src/dialogs/more-info/more-info-settings.js @@ -45,7 +45,6 @@ class MoreInfoSettings extends window.hassMixins.EventsMixin(PolymerElement) { `; } - static get is() { return 'more-info-settings'; } static get properties() { return { hass: Object, @@ -99,4 +98,4 @@ class MoreInfoSettings extends window.hassMixins.EventsMixin(PolymerElement) { ); } } -customElements.define(MoreInfoSettings.is, MoreInfoSettings); +customElements.define('more-info-settings', MoreInfoSettings); diff --git a/src/home-assistant.js b/src/home-assistant.js index ea8a8b4f92..3b0f94e243 100644 --- a/src/home-assistant.js +++ b/src/home-assistant.js @@ -58,8 +58,6 @@ class HomeAssistant extends PolymerElement { `; } - static get is() { return 'home-assistant'; } - static get properties() { return { connectionPromise: { @@ -356,4 +354,4 @@ class HomeAssistant extends PolymerElement { } } -customElements.define(HomeAssistant.is, HomeAssistant); +customElements.define('home-assistant', HomeAssistant); diff --git a/src/layouts/ha-app-layout.js b/src/layouts/ha-app-layout.js index 43028ce555..e7e6200352 100644 --- a/src/layouts/ha-app-layout.js +++ b/src/layouts/ha-app-layout.js @@ -95,7 +95,5 @@ class HaAppLayout extends customElements.get('app-header-layout') {
`; } - - static get is() { return 'ha-app-layout'; } } -customElements.define(HaAppLayout.is, HaAppLayout); +customElements.define('ha-app-layout', HaAppLayout); diff --git a/src/layouts/hass-error-screen.js b/src/layouts/hass-error-screen.js index 37e2d9ec5b..7ae65af40e 100644 --- a/src/layouts/hass-error-screen.js +++ b/src/layouts/hass-error-screen.js @@ -34,8 +34,6 @@ class HassErrorScreen extends PolymerElement { `; } - static get is() { return 'hass-error-screen'; } - static get properties() { return { title: { @@ -55,4 +53,4 @@ class HassErrorScreen extends PolymerElement { } } -customElements.define(HassErrorScreen.is, HassErrorScreen); +customElements.define('hass-error-screen', HassErrorScreen); diff --git a/src/layouts/hass-loading-screen.js b/src/layouts/hass-loading-screen.js index 524b3c59d8..a1a3f2c961 100644 --- a/src/layouts/hass-loading-screen.js +++ b/src/layouts/hass-loading-screen.js @@ -31,8 +31,6 @@ class HassLoadingScreen extends PolymerElement { `; } - static get is() { return 'hass-loading-screen'; } - static get properties() { return { narrow: { @@ -53,4 +51,4 @@ class HassLoadingScreen extends PolymerElement { } } -customElements.define(HassLoadingScreen.is, HassLoadingScreen); +customElements.define('hass-loading-screen', HassLoadingScreen); diff --git a/src/layouts/hass-subpage.js b/src/layouts/hass-subpage.js index 7b41ff177b..e47be7a437 100644 --- a/src/layouts/hass-subpage.js +++ b/src/layouts/hass-subpage.js @@ -22,8 +22,6 @@ class HassSubpage extends PolymerElement { `; } - static get is() { return 'hass-subpage'; } - static get properties() { return { header: String @@ -35,4 +33,4 @@ class HassSubpage extends PolymerElement { } } -customElements.define(HassSubpage.is, HassSubpage); +customElements.define('hass-subpage', HassSubpage); diff --git a/src/layouts/home-assistant-main.js b/src/layouts/home-assistant-main.js index 17a58b6d64..7028695849 100644 --- a/src/layouts/home-assistant-main.js +++ b/src/layouts/home-assistant-main.js @@ -57,8 +57,6 @@ import './partial-panel-resolver.js'; `; } - static get is() { return 'home-assistant-main'; } - static get properties() { return { hass: Object, @@ -129,5 +127,5 @@ import './partial-panel-resolver.js'; } } - customElements.define(HomeAssistantMain.is, HomeAssistantMain); + customElements.define('home-assistant-main', HomeAssistantMain); } diff --git a/src/layouts/login-form.js b/src/layouts/login-form.js index 5d0b27f344..6836ba5e86 100644 --- a/src/layouts/login-form.js +++ b/src/layouts/login-form.js @@ -67,8 +67,6 @@ class LoginForm extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'login-form'; } - static get properties() { return { hass: { @@ -186,4 +184,4 @@ class LoginForm extends window.hassMixins.LocalizeMixin(PolymerElement) { } } -customElements.define(LoginForm.is, LoginForm); +customElements.define('login-form', LoginForm); diff --git a/src/layouts/partial-cards.js b/src/layouts/partial-cards.js index 18503d986a..bcc85590b0 100644 --- a/src/layouts/partial-cards.js +++ b/src/layouts/partial-cards.js @@ -91,8 +91,6 @@ import './ha-app-layout.js'; `; } - static get is() { return 'partial-cards'; } - static get properties() { return { @@ -340,5 +338,5 @@ import './ha-app-layout.js'; } } - customElements.define(PartialCards.is, PartialCards); + customElements.define('partial-cards', PartialCards); } diff --git a/src/layouts/partial-panel-resolver.js b/src/layouts/partial-panel-resolver.js index 2c9c2ee8cc..ece57c9295 100644 --- a/src/layouts/partial-panel-resolver.js +++ b/src/layouts/partial-panel-resolver.js @@ -103,8 +103,6 @@ class PartialPanelResolver extends window.hassMixins.NavigateMixin(PolymerElemen `; } - static get is() { return 'partial-panel-resolver'; } - static get properties() { return { hass: { @@ -213,4 +211,4 @@ class PartialPanelResolver extends window.hassMixins.NavigateMixin(PolymerElemen } } -customElements.define(PartialPanelResolver.is, PartialPanelResolver); +customElements.define('partial-panel-resolver', PartialPanelResolver); diff --git a/src/managers/notification-manager.js b/src/managers/notification-manager.js index e578a8d9fc..34245b9922 100644 --- a/src/managers/notification-manager.js +++ b/src/managers/notification-manager.js @@ -16,8 +16,6 @@ class NotificationManager extends PolymerElement { `; } - static get is() { return 'notification-manager'; } - static get properties() { return { hass: { @@ -95,4 +93,4 @@ class NotificationManager extends PolymerElement { } } -customElements.define(NotificationManager.is, NotificationManager); +customElements.define('notification-manager', NotificationManager); diff --git a/src/state-summary/state-card-climate.js b/src/state-summary/state-card-climate.js index 34d3e894e6..c5ed9831f4 100644 --- a/src/state-summary/state-card-climate.js +++ b/src/state-summary/state-card-climate.js @@ -28,8 +28,6 @@ class StateCardClimate extends PolymerElement { `; } - static get is() { return 'state-card-climate'; } - static get properties() { return { stateObj: Object, @@ -40,4 +38,4 @@ class StateCardClimate extends PolymerElement { }; } } -customElements.define(StateCardClimate.is, StateCardClimate); +customElements.define('state-card-climate', StateCardClimate); diff --git a/src/state-summary/state-card-configurator.js b/src/state-summary/state-card-configurator.js index 6f450e5588..8cac696e3d 100644 --- a/src/state-summary/state-card-configurator.js +++ b/src/state-summary/state-card-configurator.js @@ -31,8 +31,6 @@ class StateCardConfigurator extends PolymerElement { `; } - static get is() { return 'state-card-configurator'; } - static get properties() { return { stateObj: Object, @@ -43,4 +41,4 @@ class StateCardConfigurator extends PolymerElement { }; } } -customElements.define(StateCardConfigurator.is, StateCardConfigurator); +customElements.define('state-card-configurator', StateCardConfigurator); diff --git a/src/state-summary/state-card-content.js b/src/state-summary/state-card-content.js index 5bbcf627fc..6ec456fffa 100644 --- a/src/state-summary/state-card-content.js +++ b/src/state-summary/state-card-content.js @@ -16,8 +16,6 @@ import './state-card-toggle.js'; import './state-card-weblink.js'; class StateCardContent extends PolymerElement { - static get is() { return 'state-card-content'; } - static get properties() { return { hass: Object, @@ -54,4 +52,4 @@ class StateCardContent extends PolymerElement { ); } } -customElements.define(StateCardContent.is, StateCardContent); +customElements.define('state-card-content', StateCardContent); diff --git a/src/state-summary/state-card-cover.js b/src/state-summary/state-card-cover.js index 9060732487..a10ea6806c 100644 --- a/src/state-summary/state-card-cover.js +++ b/src/state-summary/state-card-cover.js @@ -26,8 +26,6 @@ class StateCardCover extends PolymerElement { `; } - static get is() { return 'state-card-cover'; } - static get properties() { return { hass: Object, @@ -48,4 +46,4 @@ class StateCardCover extends PolymerElement { return entity; } } -customElements.define(StateCardCover.is, StateCardCover); +customElements.define('state-card-cover', StateCardCover); diff --git a/src/state-summary/state-card-display.js b/src/state-summary/state-card-display.js index 112f0eee6d..32bafee91a 100644 --- a/src/state-summary/state-card-display.js +++ b/src/state-summary/state-card-display.js @@ -44,8 +44,6 @@ class StateCardDisplay extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'state-card-display'; } - static get properties() { return { hass: Object, @@ -69,4 +67,4 @@ class StateCardDisplay extends window.hassMixins.LocalizeMixin(PolymerElement) { return classes.join(' '); } } -customElements.define(StateCardDisplay.is, StateCardDisplay); +customElements.define('state-card-display', StateCardDisplay); diff --git a/src/state-summary/state-card-input_number.js b/src/state-summary/state-card-input_number.js index 4f8176a8f8..3bb104fabb 100644 --- a/src/state-summary/state-card-input_number.js +++ b/src/state-summary/state-card-input_number.js @@ -50,8 +50,6 @@ class StateCardInputNumber extends mixinBehaviors([ `; } - static get is() { return 'state-card-input_number'; } - ready() { super.ready(); if (typeof ResizeObserver === 'function') { @@ -151,4 +149,4 @@ class StateCardInputNumber extends mixinBehaviors([ } } -customElements.define(StateCardInputNumber.is, StateCardInputNumber); +customElements.define('state-card-input_number', StateCardInputNumber); diff --git a/src/state-summary/state-card-input_select.js b/src/state-summary/state-card-input_select.js index 4ceb8a0788..96ac9a2702 100644 --- a/src/state-summary/state-card-input_select.js +++ b/src/state-summary/state-card-input_select.js @@ -40,8 +40,6 @@ class StateCardInputSelect extends PolymerElement { `; } - static get is() { return 'state-card-input_select'; } - static get properties() { return { hass: Object, @@ -80,4 +78,4 @@ class StateCardInputSelect extends PolymerElement { ev.stopPropagation(); } } -customElements.define(StateCardInputSelect.is, StateCardInputSelect); +customElements.define('state-card-input_select', StateCardInputSelect); diff --git a/src/state-summary/state-card-input_text.js b/src/state-summary/state-card-input_text.js index 533801052c..a942ce4593 100644 --- a/src/state-summary/state-card-input_text.js +++ b/src/state-summary/state-card-input_text.js @@ -24,8 +24,6 @@ class StateCardInputText extends PolymerElement { `; } - static get is() { return 'state-card-input_text'; } - static get properties() { return { hass: Object, @@ -70,4 +68,4 @@ class StateCardInputText extends PolymerElement { } } -customElements.define(StateCardInputText.is, StateCardInputText); +customElements.define('state-card-input_text', StateCardInputText); diff --git a/src/state-summary/state-card-media_player.js b/src/state-summary/state-card-media_player.js index 3b28e922a3..68a1e3e904 100644 --- a/src/state-summary/state-card-media_player.js +++ b/src/state-summary/state-card-media_player.js @@ -50,8 +50,6 @@ class StateCardMediaPlayer extends window.hassMixins.LocalizeMixin(PolymerElemen `; } - static get is() { return 'state-card-media_player'; } - static get properties() { return { hass: Object, @@ -77,4 +75,4 @@ class StateCardMediaPlayer extends window.hassMixins.LocalizeMixin(PolymerElemen || localize(`state.default.${playerObj.stateObj.state}`) || playerObj.stateObj.state; } } -customElements.define(StateCardMediaPlayer.is, StateCardMediaPlayer); +customElements.define('state-card-media_player', StateCardMediaPlayer); diff --git a/src/state-summary/state-card-scene.js b/src/state-summary/state-card-scene.js index 29008159fc..e2f7280ba0 100644 --- a/src/state-summary/state-card-scene.js +++ b/src/state-summary/state-card-scene.js @@ -30,8 +30,6 @@ class StateCardScene extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'state-card-scene'; } - static get properties() { return { hass: Object, @@ -51,4 +49,4 @@ class StateCardScene extends window.hassMixins.LocalizeMixin(PolymerElement) { ); } } -customElements.define(StateCardScene.is, StateCardScene); +customElements.define('state-card-scene', StateCardScene); diff --git a/src/state-summary/state-card-script.js b/src/state-summary/state-card-script.js index 800f2ba2a9..4cd5a56150 100644 --- a/src/state-summary/state-card-script.js +++ b/src/state-summary/state-card-script.js @@ -40,8 +40,6 @@ class StateCardScript extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'state-card-script'; } - static get properties() { return { hass: Object, @@ -61,4 +59,4 @@ class StateCardScript extends window.hassMixins.LocalizeMixin(PolymerElement) { ); } } -customElements.define(StateCardScript.is, StateCardScript); +customElements.define('state-card-script', StateCardScript); diff --git a/src/state-summary/state-card-timer.js b/src/state-summary/state-card-timer.js index 4cde4f0a24..e2237a6404 100644 --- a/src/state-summary/state-card-timer.js +++ b/src/state-summary/state-card-timer.js @@ -28,8 +28,6 @@ class StateCardTimer extends window.hassMixins.LocalizeMixin(PolymerElement) { `; } - static get is() { return 'state-card-timer'; } - static get properties() { return { hass: Object, @@ -83,4 +81,4 @@ class StateCardTimer extends window.hassMixins.LocalizeMixin(PolymerElement) { return window.hassUtil.secondsToDuration(time); } } -customElements.define(StateCardTimer.is, StateCardTimer); +customElements.define('state-card-timer', StateCardTimer); diff --git a/src/state-summary/state-card-toggle.js b/src/state-summary/state-card-toggle.js index c78702769a..cd4f81455f 100644 --- a/src/state-summary/state-card-toggle.js +++ b/src/state-summary/state-card-toggle.js @@ -23,8 +23,6 @@ class StateCardToggle extends PolymerElement { `; } - static get is() { return 'state-card-toggle'; } - static get properties() { return { hass: Object, @@ -36,4 +34,4 @@ class StateCardToggle extends PolymerElement { }; } } -customElements.define(StateCardToggle.is, StateCardToggle); +customElements.define('state-card-toggle', StateCardToggle); diff --git a/src/state-summary/state-card-weblink.js b/src/state-summary/state-card-weblink.js index a75af49fcd..b54fdaaf1c 100644 --- a/src/state-summary/state-card-weblink.js +++ b/src/state-summary/state-card-weblink.js @@ -26,8 +26,6 @@ class StateCardWeblink extends PolymerElement { `; } - static get is() { return 'state-card-weblink'; } - static get properties() { return { stateObj: Object, @@ -53,4 +51,4 @@ class StateCardWeblink extends PolymerElement { window.open(this.stateObj.state, '_blank'); } } -customElements.define(StateCardWeblink.is, StateCardWeblink); +customElements.define('state-card-weblink', StateCardWeblink); diff --git a/src/util/ha-pref-storage.js b/src/util/ha-pref-storage.js index 4525581dd4..73a6129177 100644 --- a/src/util/ha-pref-storage.js +++ b/src/util/ha-pref-storage.js @@ -8,8 +8,6 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; ]; class HaPrefStorage extends PolymerElement { - static get is() { return 'ha-pref-storage'; } - static get properties() { return { hass: Object, @@ -47,5 +45,5 @@ import { PolymerElement } from '@polymer/polymer/polymer-element.js'; return state; } } - customElements.define(HaPrefStorage.is, HaPrefStorage); + customElements.define('ha-pref-storage', HaPrefStorage); } diff --git a/src/util/ha-url-sync.js b/src/util/ha-url-sync.js index 99e695da6f..8abe4b42ca 100644 --- a/src/util/ha-url-sync.js +++ b/src/util/ha-url-sync.js @@ -7,8 +7,6 @@ import './hass-mixins.js'; const DEBUG = false; class HaUrlSync extends window.hassMixins.EventsMixin(PolymerElement) { - static get is() { return 'ha-url-sync'; } - static get properties() { return { hass: { @@ -70,5 +68,5 @@ import './hass-mixins.js'; window.removeEventListener('popstate', this.popstateChangeListener); } } - customElements.define(HaUrlSync.is, HaUrlSync); + customElements.define('ha-url-sync', HaUrlSync); }