Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.trimTrailingWhitespace": true
}
}
2 changes: 1 addition & 1 deletion cast/src/receiver/layout/hc-demo.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
customElement,
html,
property,
internalProperty,
property,
TemplateResult,
} from "lit-element";
import { mockHistory } from "../../../../demo/src/stubs/history";
Expand Down
2 changes: 1 addition & 1 deletion cast/src/receiver/second-load.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "web-animations-js/web-animations-next-lite.min";
import "../../../src/resources/roboto";
import "../../../src/resources/ha-style";
import "../../../src/resources/roboto";
import "./layout/hc-lovelace";
2 changes: 1 addition & 1 deletion demo/src/custom-cards/cast-demo-row.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import {
CSSResult,
customElement,
html,
LitElement,
internalProperty,
LitElement,
TemplateResult,
} from "lit-element";
import { CastManager } from "../../../src/cast/cast_manager";
Expand Down
2 changes: 1 addition & 1 deletion demo/src/custom-cards/ha-demo-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
css,
CSSResult,
html,
internalProperty,
LitElement,
property,
internalProperty,
TemplateResult,
} from "lit-element";
import { until } from "lit-html/directives/until";
Expand Down
2 changes: 1 addition & 1 deletion demo/src/entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "../../src/resources/safari-14-attachshadow-patch";
import "@polymer/polymer/lib/elements/dom-if";
import "@polymer/polymer/lib/elements/dom-repeat";
import "../../src/resources/ha-style";
import "../../src/resources/roboto";
import "../../src/resources/safari-14-attachshadow-patch";
import "./ha-demo";

/* polyfill for paper-dropdown */
Expand Down
1 change: 1 addition & 0 deletions demo/src/ha-demo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Compat needs to be first import
import "../../src/resources/compatibility";
import { isNavigationClick } from "../../src/common/dom/is-navigation-click";
import { navigate } from "../../src/common/navigate";
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/components/demo-cards.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import "@polymer/app-layout/app-toolbar/app-toolbar";
import { html } from "@polymer/polymer/lib/utils/html-tag";
/* eslint-plugin-disable lit */
import { PolymerElement } from "@polymer/polymer/polymer-element";
import "../../../src/components/ha-switch";
import { applyThemesOnElement } from "../../../src/common/dom/apply_themes_on_element";
import "../../../src/components/ha-formfield";
import "../../../src/components/ha-switch";
import "./demo-card";
import { applyThemesOnElement } from "../../../src/common/dom/apply_themes_on_element";

class DemoCards extends PolymerElement {
static get template() {
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/components/demo-more-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { html } from "@polymer/polymer/lib/utils/html-tag";
/* eslint-plugin-disable lit */
import { PolymerElement } from "@polymer/polymer/polymer-element";
import "../../../src/components/ha-card";
import "../../../src/state-summary/state-card-content";
import "../../../src/dialogs/more-info/more-info-content";
import "../../../src/state-summary/state-card-content";

class DemoMoreInfo extends PolymerElement {
static get template() {
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/components/demo-more-infos.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import "@polymer/app-layout/app-toolbar/app-toolbar";
import { html } from "@polymer/polymer/lib/utils/html-tag";
/* eslint-plugin-disable lit */
import { PolymerElement } from "@polymer/polymer/polymer-element";
import "../../../src/components/ha-switch";
import { applyThemesOnElement } from "../../../src/common/dom/apply_themes_on_element";
import "../../../src/components/ha-formfield";
import "../../../src/components/ha-switch";
import "./demo-more-info";
import { applyThemesOnElement } from "../../../src/common/dom/apply_themes_on_element";

class DemoMoreInfos extends PolymerElement {
static get template() {
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-alarm-panel-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-conditional-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-entities-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
4 changes: 2 additions & 2 deletions gallery/src/demos/demo-hui-entity-button-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down Expand Up @@ -53,7 +53,7 @@ const CONFIGS = [
config: `
- type: button
entity: light.bed_light
tap_action:
tap_action:
action: toggle
`,
},
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-entity-filter-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-gauge-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-glance-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-iframe-card.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { html, LitElement, customElement, TemplateResult } from "lit-element";
import { customElement, html, LitElement, TemplateResult } from "lit-element";
import "../components/demo-cards";

const CONFIGS = [
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-light-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-map-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-markdown-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-media-control-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
8 changes: 4 additions & 4 deletions gallery/src/demos/demo-hui-media-player-rows.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down Expand Up @@ -31,9 +31,9 @@ const CONFIGS = [
- entity: media_player.android_cast
name: Screen casting
- entity: media_player.image_display
name: Digital Picture Frame
name: Digital Picture Frame
- entity: media_player.sonos_idle
name: Sonos Idle
name: Sonos Idle
- entity: media_player.idle_browse_media
name: Idle waiting for Browse Media
- entity: media_player.theater_off
Expand All @@ -43,7 +43,7 @@ const CONFIGS = [
- entity: media_player.theater_off_static
name: Player Off (cannot be switched on)
- entity: media_player.theater_on_static
name: Player On (cannot be switched off)
name: Player On (cannot be switched off)
- entity: media_player.idle
name: Player Idle
- entity: media_player.playing
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-picture-elements-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-picture-entity-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-picture-glance-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-plant-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-shopping-list-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-stack-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-thermostat-card.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
PropertyValues,
query,
TemplateResult,
Expand Down
8 changes: 4 additions & 4 deletions gallery/src/demos/demo-more-info-light.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
customElement,
html,
LitElement,
customElement,
property,
PropertyValues,
query,
Expand All @@ -10,20 +10,20 @@ import {
import "../../../src/components/ha-card";
import {
SUPPORT_BRIGHTNESS,
SUPPORT_COLOR,
SUPPORT_COLOR_TEMP,
SUPPORT_EFFECT,
SUPPORT_FLASH,
SUPPORT_COLOR,
SUPPORT_TRANSITION,
SUPPORT_WHITE_VALUE,
} from "../../../src/data/light";
import "../../../src/dialogs/more-info/more-info-content";
import { getEntity } from "../../../src/fake_data/entity";
import {
provideHass,
MockHomeAssistant,
provideHass,
} from "../../../src/fake_data/provide_hass";
import "../components/demo-more-infos";
import "../../../src/dialogs/more-info/more-info-content";

const ENTITIES = [
getEntity("light", "bed_light", "on", {
Expand Down
4 changes: 2 additions & 2 deletions hassio/src/addon-view/config/hassio-addon-audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import {
CSSResult,
customElement,
html,
internalProperty,
LitElement,
property,
internalProperty,
PropertyValues,
TemplateResult,
} from "lit-element";
import "web-animations-js/web-animations-next-lite.min";
import "../../../../src/components/buttons/ha-progress-button";
import "../../../../src/components/ha-card";
import {
HassioAddonDetails,
Expand All @@ -28,7 +29,6 @@ import { haStyle } from "../../../../src/resources/styles";
import { HomeAssistant } from "../../../../src/types";
import { suggestAddonRestart } from "../../dialogs/suggestAddonRestart";
import { hassioStyle } from "../../resources/hassio-style";
import "../../../../src/components/buttons/ha-progress-button";

@customElement("hassio-addon-audio")
class HassioAddonAudio extends LitElement {
Expand Down
2 changes: 1 addition & 1 deletion hassio/src/addon-view/config/hassio-addon-config-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import {
property,
TemplateResult,
} from "lit-element";
import "../../../../src/components/ha-circular-progress";
import { HassioAddonDetails } from "../../../../src/data/hassio/addon";
import { haStyle } from "../../../../src/resources/styles";
import { HomeAssistant } from "../../../../src/types";
import { hassioStyle } from "../../resources/hassio-style";
import "../../../../src/components/ha-circular-progress";
import "./hassio-addon-audio";
import "./hassio-addon-config";
import "./hassio-addon-network";
Expand Down
2 changes: 1 addition & 1 deletion hassio/src/addon-view/hassio-addon-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import {
TemplateResult,
} from "lit-element";
import memoizeOne from "memoize-one";
import "../../../src/components/ha-circular-progress";
import {
fetchHassioAddonInfo,
HassioAddonDetails,
} from "../../../src/data/hassio/addon";
import "../../../src/layouts/hass-tabs-subpage";
import "../../../src/components/ha-circular-progress";
import type { PageNavigation } from "../../../src/layouts/hass-tabs-subpage";
import { haStyle } from "../../../src/resources/styles";
import { HomeAssistant, Route } from "../../../src/types";
Expand Down
2 changes: 1 addition & 1 deletion hassio/src/addon-view/info/hassio-addon-info-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
property,
TemplateResult,
} from "lit-element";
import { HassioAddonDetails } from "../../../../src/data/hassio/addon";
import "../../../../src/components/ha-circular-progress";
import { HassioAddonDetails } from "../../../../src/data/hassio/addon";
import { haStyle } from "../../../../src/resources/styles";
import { HomeAssistant } from "../../../../src/types";
import { hassioStyle } from "../../resources/hassio-style";
Expand Down
Loading