Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 20181121.0 to master #2077

Merged
merged 70 commits into from Nov 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
f489d88
Revert RTL PR (#1975)
zsarnett Nov 3, 2018
4810042
Hide state if its unknown e.g. the climate entity does not have one (…
schmic Nov 3, 2018
bcbf0ba
add vscode extension recommondations (#1978)
schmic Nov 3, 2018
1ca2424
Convert auth to TS (#1976)
balloob Nov 4, 2018
e5fe295
Split up cloud card (#1983)
balloob Nov 5, 2018
cf19ceb
Filter out non number states instead of assigning them 0 (#1987)
kalkih Nov 5, 2018
856ef34
<path> error fix & literals (#1993)
kalkih Nov 5, 2018
cdb2093
Ts all the tests (#1998)
balloob Nov 6, 2018
935639e
Add getElementConfig to Glance + Add Form UI for updating YAML (#1944)
zsarnett Nov 6, 2018
6432207
New Card: Shopping List (#1970)
iantrich Nov 6, 2018
c10e409
Convert cover-row to TypeScript/LitElement (#1933)
iantrich Nov 6, 2018
5891a6e
Fix for thermostats without current temperature (#1979)
schmic Nov 6, 2018
92af45d
Lint
balloob Nov 6, 2018
54e4375
Make conditional not take up space in stacks when hidden (#1999)
thomasloven Nov 6, 2018
e2b9893
Expose entities for Google/Alexa (#680)
balloob Nov 6, 2018
14b959b
Fix cover showing error
balloob Nov 6, 2018
9ce74e2
Convert hui-toggle-entity-row to TypeScript/LitElement (#1939)
iantrich Nov 7, 2018
f971995
Convert call-service to TypeScript (#1985)
iantrich Nov 7, 2018
7c2135f
Fix iframe aspect_ratio (#2004)
iantrich Nov 7, 2018
a58a324
Format html (#2006)
balloob Nov 7, 2018
d31cea7
Update translations
balloob Nov 7, 2018
10092dc
Bumped version to 2018117.0
balloob Nov 7, 2018
9c735bb
Merge branch 'master' into dev
balloob Nov 7, 2018
c1e3259
Bumped version to 20181107.0
balloob Nov 7, 2018
a26a372
Use non-forked version of fecha
balloob Nov 7, 2018
787ea88
Add text color to error row (#2007)
balloob Nov 7, 2018
59a681f
Convert hui-lock-entity-row to TypeScript/LitElement (#2022)
iantrich Nov 8, 2018
4a893d9
Convert hui-script-entity-row to TypeScript/LitElement (#2020)
iantrich Nov 8, 2018
ad5f815
Convert hui-scene-entity-row to TypeScript/LitElement (#2021)
iantrich Nov 8, 2018
9596f73
Convert hui-text-entity-row to TypeScript/LitElement (#2017)
iantrich Nov 8, 2018
6c44a92
Convert hui-group-entity-row to TypeScript/LitElement (#2015)
iantrich Nov 8, 2018
81e1e5b
Fix link color in persistent notification (#2023)
balloob Nov 8, 2018
56bdb6e
Fix fetching sub
balloob Nov 8, 2018
cb640c2
Convert hui-picture-card to TypeScript/LitElement (#2030)
iantrich Nov 9, 2018
9c2b85d
Add checked item section to shopping-list-card (#2005)
iantrich Nov 9, 2018
9f55678
Timezone support for displaying header with date in logbook (#2026)
Anonym-tsk Nov 9, 2018
e580dbe
Fix int in ha-form (#2033)
balloob Nov 9, 2018
efbd97f
Add clearing of checked items to shopping-list-card (#2034)
iantrich Nov 10, 2018
1f0c729
Upgrade Lit (#2032)
balloob Nov 10, 2018
65bd7fd
Update translations
balloob Nov 11, 2018
2076949
Glance fix (#2040)
zsarnett Nov 12, 2018
d974d5d
Fix hold_action not working on chrome for android (#2011)
thomasloven Nov 11, 2018
239ec5f
Ability to add items to shopping-list-card (#2035)
iantrich Nov 11, 2018
b533e4d
Bumped version to 20181112.0
balloob Nov 12, 2018
4407da9
Remove extra >
balloob Nov 13, 2018
8a9762d
Add icon for manual mode (#2036)
TomMini Nov 14, 2018
adb39fd
Update Lovelace Thermostat Card to include all supported thermostat m…
callifo Nov 14, 2018
8c2a2fc
Remove extra > (#2062)
jackwilsdon Nov 17, 2018
b1a50aa
Fix hassio develop script
balloob Nov 18, 2018
f92f89e
Convert compute functions to TypeScript (#2055)
iantrich Nov 18, 2018
1bb62bf
Only add a separating colon if there is a valid prefix and suffix (#2…
jackwilsdon Nov 19, 2018
9a9986c
Flatline fix for Sensor Cards (#2064)
Petro31 Nov 19, 2018
0bb85bc
Added migrate dialog when card has no ID (#2008)
bramkragten Nov 19, 2018
773711a
Update Hassio with security options (#2067)
bramkragten Nov 20, 2018
2058e0d
Fix gz build
pvizeli Nov 20, 2018
ef2aa2e
Picture Glance Conversion to TS (#2029)
zsarnett Nov 20, 2018
07cf114
Improve sensor graph algorithm (#2069)
kalkih Nov 20, 2018
c20a285
Pin Lit-HTML and Lit-Element (#2070)
balloob Nov 20, 2018
b8f048d
Convert hui-input-text-entity-row to TypeScript/LitElement (#2050)
iantrich Nov 20, 2018
a9704b1
Convert hui-input-select-entity-row to TypeScript/LitElement (#2048)
iantrich Nov 20, 2018
5da16db
RTL support (POC) (#2014)
rhayun Nov 20, 2018
ba5d224
Gen MDI icons during hassio build
balloob Nov 20, 2018
c01bd57
Fix compression hassio build
balloob Nov 20, 2018
2ca3a78
Allow Google unlocking locks (#2073)
balloob Nov 20, 2018
86e501f
Convert retrieval of items in shopping-list to websockets (#2041)
iantrich Nov 21, 2018
49542c4
Entities Card UI Editor (#2072)
zsarnett Nov 21, 2018
39819c5
Hassio: Fix download snapshot (#2071)
bramkragten Nov 21, 2018
f72a2b7
Merge remote-tracking branch 'origin/master' into dev
balloob Nov 21, 2018
e4dc188
Update translations
balloob Nov 21, 2018
cbb703e
Bumped version to 20181121.0
balloob Nov 21, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -22,7 +22,8 @@ bin
dist

# vscode
.vscode
.vscode/*
!.vscode/extensions.json

# Secrets
.lokalise_token
Expand Down
7 changes: 7 additions & 0 deletions .vscode/extensions.json
@@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"eg2.tslint",
"esbenp.prettier-vscode"
]
}
4 changes: 2 additions & 2 deletions gallery/src/components/demo-card.js
Expand Up @@ -38,9 +38,9 @@ class DemoCard extends PolymerElement {
}
</style>
<h2>[[config.heading]]</h2>
<div class='root'>
<div class="root">
<div id="card"></div>
<template is='dom-if' if='[[showConfig]]'>
<template is="dom-if" if="[[showConfig]]">
<pre>[[_trim(config.config)]]</pre>
</template>
</div>
Expand Down
18 changes: 9 additions & 9 deletions gallery/src/components/demo-cards.js
Expand Up @@ -25,18 +25,18 @@ class DemoCards extends PolymerElement {
}
</style>
<app-toolbar>
<div class='filters'>
<paper-toggle-button
checked='{{_showConfig}}'
>Show config</paper-toggle-button>
<div class="filters">
<paper-toggle-button checked="{{_showConfig}}"
>Show config</paper-toggle-button
>
</div>
</app-toolbar>
<div class='cards'>
<template is='dom-repeat' items='[[configs]]'>
<div class="cards">
<template is="dom-repeat" items="[[configs]]">
<demo-card
config='[[item]]'
show-config='[[_showConfig]]'
hass='[[hass]]'
config="[[item]]"
show-config="[[_showConfig]]"
hass="[[hass]]"
></demo-card>
</template>
</div>
Expand Down
86 changes: 43 additions & 43 deletions gallery/src/components/demo-more-info.js
Expand Up @@ -8,56 +8,56 @@ import "../../../src/components/ha-card";
class DemoMoreInfo extends PolymerElement {
static get template() {
return html`
<style>
:host {
display: flex;
align-items: start;
}
<style>
:host {
display: flex;
align-items: start;
}

ha-card {
width: 333px;
}
ha-card {
width: 333px;
}

state-card-content {
display: block;
padding: 16px;
}
state-card-content {
display: block;
padding: 16px;
}

more-info-content {
padding: 0 16px;
}
more-info-content {
padding: 0 16px;
}

pre {
width: 400px;
margin: 16px;
overflow: auto;
}
pre {
width: 400px;
margin: 16px;
overflow: auto;
}

@media only screen and (max-width: 800px) {
:host {
flex-direction: column;
}
pre {
margin-left: 0;
}
@media only screen and (max-width: 800px) {
:host {
flex-direction: column;
}
pre {
margin-left: 0;
}
</style>
<ha-card>
<state-card-content
state-obj="[[_stateObj]]"
hass="[[hass]]"
in-dialog
></state-card-content>
}
</style>
<ha-card>
<state-card-content
state-obj="[[_stateObj]]"
hass="[[hass]]"
in-dialog
></state-card-content>

<more-info-content
hass='[[hass]]'
state-obj='[[_stateObj]]'
></more-info-content>
</ha-card>
<template is='dom-if' if='[[showConfig]]'>
<pre>[[_jsonEntity(_stateObj)]]</pre>
</template>
`;
<more-info-content
hass="[[hass]]"
state-obj="[[_stateObj]]"
></more-info-content>
</ha-card>
<template is="dom-if" if="[[showConfig]]">
<pre>[[_jsonEntity(_stateObj)]]</pre>
</template>
`;
}

static get properties() {
Expand Down
18 changes: 9 additions & 9 deletions gallery/src/components/demo-more-infos.js
Expand Up @@ -25,18 +25,18 @@ class DemoMoreInfos extends PolymerElement {
}
</style>
<app-toolbar>
<div class='filters'>
<paper-toggle-button
checked='{{_showConfig}}'
>Show entity</paper-toggle-button>
<div class="filters">
<paper-toggle-button checked="{{_showConfig}}"
>Show entity</paper-toggle-button
>
</div>
</app-toolbar>
<div class='cards'>
<template is='dom-repeat' items='[[entities]]'>
<div class="cards">
<template is="dom-repeat" items="[[entities]]">
<demo-more-info
entity-id='[[item]]'
show-config='[[_showConfig]]'
hass='[[hass]]'
entity-id="[[item]]"
show-config="[[_showConfig]]"
hass="[[hass]]"
></demo-more-info>
</template>
</div>
Expand Down
6 changes: 6 additions & 0 deletions gallery/src/data/provide_hass.js
Expand Up @@ -29,6 +29,12 @@ export default (elements, { initialStates = {} } = {}) => {
resources: demoResources,
states: initialStates,
themes: {},
connection: {
subscribeEvents: async (callback, event) => {
console.log("subscribeEvents", event);
return () => console.log("unsubscribeEvents", event);
},
},

// Mock properties
mockEntities: entities,
Expand Down
6 changes: 5 additions & 1 deletion gallery/src/demos/demo-hui-alarm-panel-card.js
Expand Up @@ -51,7 +51,11 @@ const CONFIGS = [
class DemoAlarmPanelEntity extends PolymerElement {
static get template() {
return html`
<demo-cards id='demos' hass='[[hass]]' configs="[[_configs]]"></demo-cards>
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
}

Expand Down
4 changes: 2 additions & 2 deletions gallery/src/demos/demo-hui-conditional-card.js
Expand Up @@ -57,8 +57,8 @@ class DemoConditional extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
hass='[[hass]]'
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
Expand Down
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-entities-card.js
Expand Up @@ -175,10 +175,7 @@ const CONFIGS = [
class DemoEntities extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
6 changes: 5 additions & 1 deletion gallery/src/demos/demo-hui-entity-button-card.js
Expand Up @@ -71,7 +71,11 @@ const CONFIGS = [
class DemoEntityButtonEntity extends PolymerElement {
static get template() {
return html`
<demo-cards id='demos' hass='[[hass]]' configs="[[_configs]]"></demo-cards>
<demo-cards
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
}

Expand Down
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-entity-filter-card.js
Expand Up @@ -92,10 +92,7 @@ const CONFIGS = [
class DemoFilter extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-glance-card.js
Expand Up @@ -217,10 +217,7 @@ const CONFIGS = [
class DemoPicEntity extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
2 changes: 1 addition & 1 deletion gallery/src/demos/demo-hui-light-card.js
Expand Up @@ -25,7 +25,7 @@ const CONFIGS = [
class DemoLightEntity extends PolymerElement {
static get template() {
return html`
<demo-cards id='demos' configs="[[_configs]]"></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
4 changes: 2 additions & 2 deletions gallery/src/demos/demo-hui-media-player-rows.js
Expand Up @@ -78,8 +78,8 @@ class DemoHuiMediaPlayerRows extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
hass='[[hass]]'
id="demos"
hass="[[hass]]"
configs="[[_configs]]"
></demo-cards>
`;
Expand Down
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-picture-elements-card.js
Expand Up @@ -80,10 +80,7 @@ const CONFIGS = [
class DemoPicElements extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
52 changes: 52 additions & 0 deletions gallery/src/demos/demo-hui-shopping-list-card.js
@@ -0,0 +1,52 @@
import { html } from "@polymer/polymer/lib/utils/html-tag";
import { PolymerElement } from "@polymer/polymer/polymer-element";

import provideHass from "../data/provide_hass";
import "../components/demo-cards";

const CONFIGS = [
{
heading: "List example",
config: `
- type: shopping-list
`,
},
{
heading: "List with title example",
config: `
- type: shopping-list
title: Shopping List
`,
},
];

class DemoShoppingListEntity extends PolymerElement {
static get template() {
return html`
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

static get properties() {
return {
_configs: {
type: Object,
value: CONFIGS,
},
};
}

ready() {
super.ready();
const hass = provideHass(this.$.demos);

hass.mockAPI("shopping_list", () => [
{ name: "list", id: 1, complete: false },
{ name: "all", id: 2, complete: false },
{ name: "the", id: 3, complete: false },
{ name: "things", id: 4, complete: true },
]);
}
}

customElements.define("demo-hui-shopping-list-card", DemoShoppingListEntity);
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-stack-card.js
Expand Up @@ -91,10 +91,7 @@ const CONFIGS = [
class DemoStack extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
5 changes: 1 addition & 4 deletions gallery/src/demos/demo-hui-thermostat-card.js
Expand Up @@ -62,10 +62,7 @@ const CONFIGS = [
class DemoThermostatEntity extends PolymerElement {
static get template() {
return html`
<demo-cards
id='demos'
configs="[[_configs]]"
></demo-cards>
<demo-cards id="demos" configs="[[_configs]]"></demo-cards>
`;
}

Expand Down
4 changes: 2 additions & 2 deletions gallery/src/demos/demo-more-info-light.js
Expand Up @@ -34,8 +34,8 @@ class DemoMoreInfoLight extends PolymerElement {
static get template() {
return html`
<demo-more-infos
hass='[[hass]]'
entities='[[_entities]]'
hass="[[hass]]"
entities="[[_entities]]"
></demo-more-infos>
`;
}
Expand Down
1 change: 1 addition & 0 deletions gulp/tasks/gen-icons.js
Expand Up @@ -111,4 +111,5 @@ gulp.task("gen-icons", ["gen-icons-hass", "gen-icons-mdi"], () => {});
module.exports = {
findIcons,
generateIconset,
genMDIIcons,
};