This commit is contained in:
Paulus Schoutsen 2018-11-06 11:51:33 +01:00
parent 5891a6ee7d
commit 92af45d7fd
9 changed files with 28 additions and 28 deletions

View File

@ -160,7 +160,7 @@
"@webcomponents/shadycss": "^1.5.2",
"@vaadin/vaadin-overlay": "3.2.0-alpha3",
"@vaadin/vaadin-lumo-styles": "1.2.0",
"fecha": "https://github.com/balloob/fecha/archive/51d14fd0eb4781e2ecf265d1c3080706259133b5.tar.gz"
"fecha": "https://github.com/balloob/fecha/archive/5b6ee2fc9f7a0470f0ea9ed1c079cf9fa148aa25.tar.gz"
},
"main": "src/home-assistant.js",
"husky": {

View File

@ -1,4 +1,4 @@
import * as fecha from "fecha";
import fecha from "fecha";
// Check for support of native locale string options
function toLocaleDateStringSupportsOptions() {

View File

@ -1,4 +1,4 @@
import * as fecha from "fecha";
import fecha from "fecha";
// Check for support of native locale string options
function toLocaleStringSupportsOptions() {

View File

@ -1,4 +1,4 @@
import * as fecha from "fecha";
import fecha from "fecha";
// Check for support of native locale string options
function toLocaleTimeStringSupportsOptions() {

View File

@ -36,7 +36,7 @@ export default function computeStateDisplay(
state._stateDisplay =
state.state + " " + state.attributes.unit_of_measurement;
} else if (domain === "input_datetime") {
let date;
let date: Date;
if (!state.attributes.has_time) {
date = new Date(
state.attributes.year,

View File

@ -7,17 +7,17 @@ import {
import { TemplateResult } from "lit-html";
import { classMap } from "lit-html/directives/classMap";
import { fireEvent } from "../../../common/dom/fire_event.js";
import { fireEvent } from "../../../common/dom/fire_event";
import { hassLocalizeLitMixin } from "../../../mixins/lit-localize-mixin";
import { HomeAssistant } from "../../../types.js";
import { LovelaceCard, LovelaceConfig, LovelaceCardEditor } from "../types.js";
import { HomeAssistant } from "../../../types";
import { LovelaceCard, LovelaceConfig, LovelaceCardEditor } from "../types";
import { longPress } from "../common/directives/long-press-directive";
import computeStateDisplay from "../../../common/entity/compute_state_display.js";
import computeStateName from "../../../common/entity/compute_state_name.js";
import computeStateDisplay from "../../../common/entity/compute_state_display";
import computeStateName from "../../../common/entity/compute_state_name";
import processConfigEntities from "../common/process-config-entities";
import applyThemesOnElement from "../../../common/dom/apply_themes_on_element.js";
import toggleEntity from "../common/entity/toggle-entity.js";
import applyThemesOnElement from "../../../common/dom/apply_themes_on_element";
import toggleEntity from "../common/entity/toggle-entity";
import "../../../components/entity/state-badge";
import "../../../components/ha-card";

View File

@ -1,17 +1,17 @@
import { html, LitElement, PropertyDeclarations } from "@polymer/lit-element";
import { TemplateResult } from "lit-html";
import "@polymer/paper-checkbox/paper-checkbox.js";
import "@polymer/paper-checkbox/paper-checkbox";
import { hassLocalizeLitMixin } from "../../../mixins/lit-localize-mixin";
import { HomeAssistant } from "../../../types.js";
import { LovelaceCardEditor } from "../types.js";
import { fireEvent } from "../../../common/dom/fire_event.js";
import { HomeAssistant } from "../../../types";
import { LovelaceCardEditor } from "../types";
import { fireEvent } from "../../../common/dom/fire_event";
import { Config } from "../cards/hui-glance-card";
import "../../../components/entity/state-badge.js";
import "../../../components/entity/state-badge";
import "../../../components/entity/ha-entity-picker";
import "../../../components/ha-card.js";
import "../../../components/ha-icon.js";
import "../../../components/ha-card";
import "../../../components/ha-icon";
export class HuiGlanceCardEditor extends hassLocalizeLitMixin(LitElement)
implements LovelaceCardEditor {

View File

@ -1,13 +1,13 @@
import { html, LitElement, PropertyDeclarations } from "@polymer/lit-element";
import { TemplateResult } from "lit-html";
import "../components/hui-generic-entity-row.js";
import "../../../components/ha-cover-controls.js";
import "../../../components/ha-cover-tilt-controls.js";
import "../components/hui-generic-entity-row";
import "../../../components/ha-cover-controls";
import "../../../components/ha-cover-tilt-controls";
import { isTiltOnly } from "../../../util/cover-model.js";
import { HomeAssistant } from "../../../types.js";
import { EntityRow, EntityConfig } from "./types.js";
import { isTiltOnly } from "../../../util/cover-model";
import { HomeAssistant } from "../../../types";
import { EntityRow, EntityConfig } from "./types";
class HuiCoverEntityRow extends LitElement implements EntityRow {
public hass?: HomeAssistant;

View File

@ -6220,9 +6220,9 @@ fd-slicer@~1.1.0:
dependencies:
pend "~1.2.0"
fecha@^2.3.3, "fecha@https://github.com/balloob/fecha/archive/51d14fd0eb4781e2ecf265d1c3080706259133b5.tar.gz":
version "2.3.3"
resolved "https://github.com/balloob/fecha/archive/51d14fd0eb4781e2ecf265d1c3080706259133b5.tar.gz#bfb1e49121dd7821601af35faf4fe93dbd19200a"
fecha@^2.3.3, "fecha@https://github.com/balloob/fecha/archive/5b6ee2fc9f7a0470f0ea9ed1c079cf9fa148aa25.tar.gz":
version "3.0.0"
resolved "https://github.com/balloob/fecha/archive/5b6ee2fc9f7a0470f0ea9ed1c079cf9fa148aa25.tar.gz#de665a5224b24c3d2d5441affa9fd936d320b434"
figgy-pudding@^3.1.0, figgy-pudding@^3.5.1:
version "3.5.1"