Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
6b88081
[ci skip] Translation update
homeassistant Sep 13, 2020
9af805a
Make moon icon more readable (#6969)
KTibow Sep 13, 2020
1bc9b95
Remove useless "My Title" (#6970)
KTibow Sep 13, 2020
868399e
HA Logs: Copy log (#6945)
zsarnett Sep 13, 2020
ff081dd
[ci skip] Translation update
homeassistant Sep 14, 2020
fab6ceb
fix hard to read text (#6980)
zsarnett Sep 14, 2020
426f939
Add Execute button to script editor (#6957)
thomasloven Sep 14, 2020
f6eb31b
Use --error-color instead of a fixed color (#6961)
KTibow Sep 14, 2020
e465ec8
Make code editor font family follow theme (#6958)
KTibow Sep 14, 2020
709112c
Do safety check before detecting hex value and handle YAML numbers be…
KTibow Sep 14, 2020
5b94a4d
Fix muted on video
bramkragten Sep 14, 2020
92ed14c
Merge pull request #6983 from home-assistant/fix-mnuted
ludeeus Sep 14, 2020
3030b8d
Fix input number helper (#6988)
bramkragten Sep 14, 2020
de95c92
Sidebar tweaks (#6994)
bramkragten Sep 14, 2020
cdcccf5
Pass ozw instance to ozw panel call service buttons (#6992)
cgarwood Sep 14, 2020
8a9d5f7
mwc-button -> mwc-icon-button (#6993)
ludeeus Sep 14, 2020
7628569
Cleanup more info styling (#7004)
bramkragten Sep 14, 2020
fb75d8c
Fix hex to rgb conversion (#6999)
bramkragten Sep 14, 2020
858196a
Update en.json
bramkragten Sep 14, 2020
4392d78
Allow ExoPlayer only from more-info-camera (#6974)
uvjustin Sep 14, 2020
183eff7
[ci skip] Translation update
homeassistant Sep 15, 2020
3bca32c
Disable cloud expose controls when yaml filter (#6990)
bramkragten Sep 15, 2020
239f5f1
Add snapshot support for new media folder (#6889)
frenck Sep 15, 2020
1986215
Remove version check (#6984)
ludeeus Sep 15, 2020
239e817
Rename upgrade -> update (#7013)
ludeeus Sep 15, 2020
d5cd288
Temporarily remove exoplayer (#7015)
uvjustin Sep 15, 2020
9c80776
Refresh snapshots on first update (#7014)
ludeeus Sep 15, 2020
7d862d6
Use helper to generate documentation URL (#7012)
ludeeus Sep 15, 2020
9659c97
Update Error handling (#7007)
zsarnett Sep 15, 2020
c917b67
Adjust local media error messages (#7017)
bramkragten Sep 15, 2020
ca4757d
Bumped version to 20200915.0
bramkragten Sep 15, 2020
d6aba04
revert remove tap action from button stub (#7018)
bramkragten Sep 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hassio/src/dashboard/hassio-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export class HassioUpdate extends LitElement {
item.progress = true;
const confirmed = await showConfirmationDialog(this, {
title: `Update ${item.name}`,
text: `Are you sure you want to upgrade ${item.name} to version ${item.version}?`,
text: `Are you sure you want to update ${item.name} to version ${item.version}?`,
confirmText: "update",
dismissText: "cancel",
});
Expand Down
3 changes: 2 additions & 1 deletion hassio/src/snapshots/hassio-snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class HassioSnapshots extends LitElement {
},
{ slug: "ssl", name: "SSL", checked: true },
{ slug: "share", name: "Share", checked: true },
{ slug: "media", name: "Media", checked: true },
{ slug: "addons/local", name: "Local add-ons", checked: true },
];

Expand Down Expand Up @@ -241,7 +242,7 @@ class HassioSnapshots extends LitElement {

protected firstUpdated(changedProps: PropertyValues) {
super.firstUpdated(changedProps);
this._updateSnapshots();
this.refreshData();
}

protected updated(changedProps: PropertyValues) {
Expand Down
4 changes: 1 addition & 3 deletions hassio/src/system/hassio-host-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import {
TemplateResult,
} from "lit-element";
import memoizeOne from "memoize-one";
import { atLeastVersion } from "../../../src/common/config/version";
import "../../../src/components/buttons/ha-progress-button";
import "../../../src/components/ha-button-menu";
import "../../../src/components/ha-card";
Expand Down Expand Up @@ -85,8 +84,7 @@ class HassioHostInfo extends LitElement {
</mwc-button>
</ha-settings-row>`
: ""}
${this.hostInfo.features.includes("network") &&
atLeastVersion(this.hass.config.version, 0, 115)
${this.hostInfo.features.includes("network")
? html` <ha-settings-row>
<span slot="heading">
IP address
Expand Down
2 changes: 1 addition & 1 deletion hassio/src/system/hassio-supervisor-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class HassioSupervisorInfo extends LitElement {

const confirmed = await showConfirmationDialog(this, {
title: "Update supervisor",
text: `Are you sure you want to upgrade supervisor to version ${this.supervisorInfo.version_latest}?`,
text: `Are you sure you want to update supervisor to version ${this.supervisorInfo.version_latest}?`,
confirmText: "update",
dismissText: "cancel",
});
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="home-assistant-frontend",
version="20200912.0",
version="20200915.0",
description="The Home Assistant frontend",
url="https://github.com/home-assistant/home-assistant-polymer",
author="The Home Assistant Authors",
Expand Down
10 changes: 5 additions & 5 deletions src/common/dom/apply_themes_on_element.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { derivedStyles, darkStyles } from "../../resources/styles";
import { darkStyles, derivedStyles } from "../../resources/styles";
import { HomeAssistant, Theme } from "../../types";
import {
hex2rgb,
lab2hex,
lab2rgb,
rgb2hex,
rgb2lab,
lab2rgb,
lab2hex,
} from "../color/convert-color";
import { labBrighten, labDarken } from "../color/lab";
import { rgbContrast } from "../color/rgb";
import { labDarken, labBrighten } from "../color/lab";

interface ProcessedTheme {
keys: { [key: string]: "" };
Expand Down Expand Up @@ -105,7 +105,7 @@ const processTheme = (
const keys = {};
for (const key of Object.keys(combinedTheme)) {
const prefixedKey = `--${key}`;
const value = combinedTheme[key]!;
const value = String(combinedTheme[key]);
styles[prefixedKey] = value;
keys[prefixedKey] = "";

Expand Down
20 changes: 12 additions & 8 deletions src/components/ha-button-menu.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import "@material/mwc-button";
import "@material/mwc-menu";
import type { Corner, Menu } from "@material/mwc-menu";
import {
css,
CSSResult,
customElement,
html,
TemplateResult,
LitElement,
CSSResult,
css,
query,
property,
query,
TemplateResult,
} from "lit-element";
import "@material/mwc-button";
import "@material/mwc-menu";
import type { Menu, Corner } from "@material/mwc-menu";

import "./ha-icon-button";

@customElement("ha-button-menu")
Expand All @@ -22,6 +21,8 @@ export class HaButtonMenu extends LitElement {

@property({ type: Boolean }) public activatable = false;

@property({ type: Boolean }) public disabled = false;

@query("mwc-menu") private _menu?: Menu;

public get items() {
Expand All @@ -48,6 +49,9 @@ export class HaButtonMenu extends LitElement {
}

private _handleClick(): void {
if (this.disabled) {
return;
}
this._menu!.anchor = this;
this._menu!.show();
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/ha-camera-stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class HaCameraStream extends LitElement {
@property({ type: Boolean, attribute: "muted" })
public muted = false;

@property({ type: Boolean, attribute: "allow-exoplayer" })
public allowExoPlayer = false;

// We keep track if we should force MJPEG with a string
// that way it automatically resets if we change entity.
@internalProperty() private _forceMJPEG?: string;
Expand Down Expand Up @@ -61,6 +64,7 @@ class HaCameraStream extends LitElement {
<ha-hls-player
autoplay
playsinline
.allowExoPlayer=${this.allowExoPlayer}
.muted=${this.muted}
.controls=${this.controls}
.hass=${this.hass}
Expand Down
1 change: 1 addition & 0 deletions src/components/ha-code-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class HaCodeEditor extends UpdatingElement {
.CodeMirror {
height: var(--code-mirror-height, auto);
direction: var(--code-mirror-direction, ltr);
font-family: var(--code-font-family, monospace);
}
.CodeMirror-scroll {
max-height: var(--code-mirror-max-height, --code-mirror-height);
Expand Down
17 changes: 9 additions & 8 deletions src/components/ha-hls-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from "lit-element";
import { fireEvent } from "../common/dom/fire_event";
import { nextRender } from "../common/util/render-status";
import { getExternalConfig } from "../external_app/external_config";
import type { HomeAssistant } from "../types";

type HLSModule = typeof import("hls.js");
Expand All @@ -35,6 +34,9 @@ class HaHLSPlayer extends LitElement {
@property({ type: Boolean, attribute: "playsinline" })
public playsInline = false;

@property({ type: Boolean, attribute: "allow-exoplayer" })
public allowExoPlayer = false;

@query("video") private _videoEl!: HTMLVideoElement;

@internalProperty() private _attached = false;
Expand All @@ -61,7 +63,7 @@ class HaHLSPlayer extends LitElement {
return html`
<video
?autoplay=${this.autoPlay}
?muted=${this.muted}
.muted=${this.muted}
?playsinline=${this.playsInline}
?controls=${this.controls}
@loadeddata=${this._elementResized}
Expand Down Expand Up @@ -91,11 +93,7 @@ class HaHLSPlayer extends LitElement {
}

private async _getUseExoPlayer(): Promise<boolean> {
if (!this.hass!.auth.external) {
return false;
}
const externalConfig = await getExternalConfig(this.hass!.auth.external);
return externalConfig && externalConfig.hasExoPlayer;
return false;
}

private async _startHls(): Promise<void> {
Expand Down Expand Up @@ -137,7 +135,10 @@ class HaHLSPlayer extends LitElement {
this._videoEl.style.visibility = "hidden";
await this.hass!.auth.external!.sendMessage({
type: "exoplayer/play_hls",
payload: new URL(url, window.location.href).toString(),
payload: {
url: new URL(url, window.location.href).toString(),
muted: this.muted,
},
});
}

Expand Down
Loading