mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
20230104.0 (#14985)
This commit is contained in:
commit
caa852559f
@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "home-assistant-frontend"
|
name = "home-assistant-frontend"
|
||||||
version = "20230102.0"
|
version = "20230104.0"
|
||||||
license = {text = "Apache-2.0"}
|
license = {text = "Apache-2.0"}
|
||||||
description = "The Home Assistant frontend"
|
description = "The Home Assistant frontend"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -157,7 +157,7 @@ export const CURRENCIES = [
|
|||||||
"XPF",
|
"XPF",
|
||||||
"YER",
|
"YER",
|
||||||
"ZAR",
|
"ZAR",
|
||||||
"ZMK",
|
"ZMW",
|
||||||
"ZWL",
|
"ZWL",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -223,6 +223,10 @@ export class HaStateLabelBadge extends LitElement {
|
|||||||
if (domainStateKey) {
|
if (domainStateKey) {
|
||||||
return this.hass!.localize(`state_badge.${domainStateKey}`);
|
return this.hass!.localize(`state_badge.${domainStateKey}`);
|
||||||
}
|
}
|
||||||
|
// Person and device tracker state can be zone name
|
||||||
|
if (domain === "person" || domain === "device_tracker") {
|
||||||
|
return entityState.state;
|
||||||
|
}
|
||||||
if (domain === "timer") {
|
if (domain === "timer") {
|
||||||
return secondsToDuration(_timerTimeRemaining);
|
return secondsToDuration(_timerTimeRemaining);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ class DialogCalendarEventEditor extends LitElement {
|
|||||||
|
|
||||||
@state() private _summary = "";
|
@state() private _summary = "";
|
||||||
|
|
||||||
@state() private _description = "";
|
@state() private _description? = "";
|
||||||
|
|
||||||
@state() private _rrule?: string;
|
@state() private _rrule?: string;
|
||||||
|
|
||||||
@ -87,6 +87,7 @@ class DialogCalendarEventEditor extends LitElement {
|
|||||||
const entry = params.entry!;
|
const entry = params.entry!;
|
||||||
this._allDay = isDate(entry.dtstart);
|
this._allDay = isDate(entry.dtstart);
|
||||||
this._summary = entry.summary;
|
this._summary = entry.summary;
|
||||||
|
this._description = entry.description;
|
||||||
this._rrule = entry.rrule;
|
this._rrule = entry.rrule;
|
||||||
if (this._allDay) {
|
if (this._allDay) {
|
||||||
this._dtstart = new Date(entry.dtstart + "T00:00:00");
|
this._dtstart = new Date(entry.dtstart + "T00:00:00");
|
||||||
|
@ -158,6 +158,7 @@ export class HaDeviceAction extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ha-form {
|
ha-form {
|
||||||
|
display: block;
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -40,10 +40,14 @@ class HaPanelDevMqtt extends LitElement {
|
|||||||
return html`
|
return html`
|
||||||
<hass-subpage .narrow=${this.narrow} .hass=${this.hass}>
|
<hass-subpage .narrow=${this.narrow} .hass=${this.hass}>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<ha-card header="MQTT settings">
|
<ha-card
|
||||||
|
.header=${this.hass.localize("ui.panel.config.mqtt.settings_title")}
|
||||||
|
>
|
||||||
<div class="card-actions">
|
<div class="card-actions">
|
||||||
<mwc-button @click=${this._openOptionFlow}
|
<mwc-button @click=${this._openOptionFlow}
|
||||||
>Re-configure MQTT</mwc-button
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.mqtt.reconfigure"
|
||||||
|
)}</mwc-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
|
@ -59,7 +59,7 @@ const splitByAreaDevice = (
|
|||||||
for (const entity of Object.values(entityEntries)) {
|
for (const entity of Object.values(entityEntries)) {
|
||||||
const areaId =
|
const areaId =
|
||||||
entity.area_id ||
|
entity.area_id ||
|
||||||
(entity.device_id && deviceEntries[entity.device_id].area_id);
|
(entity.device_id && deviceEntries[entity.device_id]?.area_id);
|
||||||
if (areaId && areaId in areaEntries && entity.entity_id in allEntities) {
|
if (areaId && areaId in areaEntries && entity.entity_id in allEntities) {
|
||||||
if (!(areaId in areasWithEntities)) {
|
if (!(areaId in areasWithEntities)) {
|
||||||
areasWithEntities[areaId] = [];
|
areasWithEntities[areaId] = [];
|
||||||
|
@ -46,7 +46,7 @@ export const handleAction = async (
|
|||||||
actionConfig.confirmation &&
|
actionConfig.confirmation &&
|
||||||
(!actionConfig.confirmation.exemptions ||
|
(!actionConfig.confirmation.exemptions ||
|
||||||
!actionConfig.confirmation.exemptions.some(
|
!actionConfig.confirmation.exemptions.some(
|
||||||
(e) => e.user === hass!.user!.id
|
(e) => e.user === hass!.user?.id
|
||||||
))
|
))
|
||||||
) {
|
) {
|
||||||
forwardHaptic("warning");
|
forwardHaptic("warning");
|
||||||
|
@ -266,7 +266,7 @@ class HUIRoot extends LitElement {
|
|||||||
((Array.isArray(view.visible) &&
|
((Array.isArray(view.visible) &&
|
||||||
!view.visible.some(
|
!view.visible.some(
|
||||||
(e) =>
|
(e) =>
|
||||||
e.user === this.hass!.user!.id
|
e.user === this.hass!.user?.id
|
||||||
)) ||
|
)) ||
|
||||||
view.visible === false))
|
view.visible === false))
|
||||||
),
|
),
|
||||||
@ -470,7 +470,7 @@ class HUIRoot extends LitElement {
|
|||||||
view.visible !== undefined &&
|
view.visible !== undefined &&
|
||||||
((Array.isArray(view.visible) &&
|
((Array.isArray(view.visible) &&
|
||||||
!view.visible.some(
|
!view.visible.some(
|
||||||
(e) => e.user === this.hass!.user!.id
|
(e) => e.user === this.hass!.user?.id
|
||||||
)) ||
|
)) ||
|
||||||
view.visible === false)
|
view.visible === false)
|
||||||
),
|
),
|
||||||
|
@ -3245,6 +3245,8 @@
|
|||||||
},
|
},
|
||||||
"mqtt": {
|
"mqtt": {
|
||||||
"title": "MQTT",
|
"title": "MQTT",
|
||||||
|
"settings_title": "MQTT settings",
|
||||||
|
"reconfigure": "Re-configure MQTT",
|
||||||
"description_publish": "Publish a packet",
|
"description_publish": "Publish a packet",
|
||||||
"topic": "Topic",
|
"topic": "Topic",
|
||||||
"payload": "Payload (template allowed)",
|
"payload": "Payload (template allowed)",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user