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