Merge pull request #3461 from home-assistant/dev

20190805.0
This commit is contained in:
Paulus Schoutsen 2019-08-05 22:31:25 -07:00 committed by GitHub
commit 42c6cecf89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 8 deletions

View File

@ -54,7 +54,12 @@ class CastDemoRow extends LitElement implements EntityRow {
mgr.castContext.addEventListener(
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
(ev) => {
if (ev.sessionState === "SESSION_STARTED") {
// On Android, opening a new session always results in SESSION_RESUMED.
// So treat both as the same.
if (
ev.sessionState === "SESSION_STARTED" ||
ev.sessionState === "SESSION_RESUMED"
) {
castSendShowDemo(mgr);
}
}

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name="home-assistant-frontend",
version="20190804.0",
version="20190805.0",
description="The Home Assistant frontend",
url="https://github.com/home-assistant/home-assistant-polymer",
author="The Home Assistant Authors",

View File

@ -122,10 +122,12 @@ export class CastManager {
if (__DEV__) {
console.log("Cast session state changed", ev.sessionState);
}
if (ev.sessionState === "SESSION_RESUMED") {
this.sendMessage({ type: "get_status" });
this._attachMessageListener();
} else if (ev.sessionState === "SESSION_STARTED") {
// On Android, opening a new session always results in SESSION_RESUMED.
// So treat both as the same.
if (
ev.sessionState === "SESSION_STARTED" ||
ev.sessionState === "SESSION_RESUMED"
) {
if (this.auth) {
castSendAuth(this, this.auth);
} else {

View File

@ -620,10 +620,22 @@
"common": {
"value": "Værdi",
"instance": "Instans",
"index": "Indeks"
"index": "Indeks",
"unknown": "ukendt",
"wakeup_interval": "Vækningsinterval"
},
"values": {
"header": "Node værdier"
},
"node_config": {
"header": "Indstillinger for node konfiguration",
"seconds": "sekunder",
"set_wakeup": "Indstil vækningsinterval",
"config_parameter": "Konfigurationsparameter",
"config_value": "Konfigurationsværdi",
"true": "Sandt",
"false": "Falsk",
"set_config_parameter": "Indstil konfigurationsparameter"
}
},
"users": {

View File

@ -620,10 +620,22 @@
"common": {
"value": "Waarde",
"instance": "Exemplaar",
"index": "Index"
"index": "Index",
"unknown": "onbekend",
"wakeup_interval": "Activerings interval"
},
"values": {
"header": "Knooppunt waarden"
},
"node_config": {
"header": "Node Configuratie Opties",
"seconds": "Seconden",
"set_wakeup": "Wakeup-interval instellen",
"config_parameter": "Configuratie Parameter",
"config_value": "Configuratie Waarde",
"true": "Waar",
"false": "Niet waar",
"set_config_parameter": "Stel de configuratieparameter in"
}
},
"users": {