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( mgr.castContext.addEventListener(
cast.framework.CastContextEventType.SESSION_STATE_CHANGED, cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
(ev) => { (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); castSendShowDemo(mgr);
} }
} }

View File

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

View File

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

View File

@ -620,10 +620,22 @@
"common": { "common": {
"value": "Værdi", "value": "Værdi",
"instance": "Instans", "instance": "Instans",
"index": "Indeks" "index": "Indeks",
"unknown": "ukendt",
"wakeup_interval": "Vækningsinterval"
}, },
"values": { "values": {
"header": "Node værdier" "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": { "users": {

View File

@ -620,10 +620,22 @@
"common": { "common": {
"value": "Waarde", "value": "Waarde",
"instance": "Exemplaar", "instance": "Exemplaar",
"index": "Index" "index": "Index",
"unknown": "onbekend",
"wakeup_interval": "Activerings interval"
}, },
"values": { "values": {
"header": "Knooppunt waarden" "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": { "users": {