mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-17 22:36:35 +00:00
Show err entity registry (#2914)
* Show error in entity registry * Fix area translations and error message * Fix person domain filter
This commit is contained in:
parent
9a00c65e3b
commit
eeaaecd5b7
@ -123,7 +123,7 @@ class DialogAreaDetail extends LitElement {
|
||||
}
|
||||
this._params = undefined;
|
||||
} catch (err) {
|
||||
this._error = err;
|
||||
this._error = err.message || "Unknown error";
|
||||
} finally {
|
||||
this._submitting = false;
|
||||
}
|
||||
|
@ -86,11 +86,11 @@ class HaConfigAreaRegistry extends LitElement {
|
||||
? html`
|
||||
<div class="empty">
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.area_registry.picker.no_areas"
|
||||
"ui.panel.config.area_registry.no_areas"
|
||||
)}
|
||||
<mwc-button @click=${this._createArea}>
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.area_registry.picker.create_area"
|
||||
"ui.panel.config.area_registry.create_area"
|
||||
)}
|
||||
</mwc-button>
|
||||
</div>
|
||||
@ -104,7 +104,7 @@ class HaConfigAreaRegistry extends LitElement {
|
||||
?is-wide=${this.isWide}
|
||||
icon="hass:plus"
|
||||
title="${this.hass.localize(
|
||||
"ui.panel.config.area_registry.picker.create_area"
|
||||
"ui.panel.config.area_registry.create_area"
|
||||
)}"
|
||||
@click=${this._createArea}
|
||||
class="${classMap({
|
||||
|
@ -139,7 +139,7 @@ class DialogEntityRegistryDetail extends LitElement {
|
||||
});
|
||||
this._params = undefined;
|
||||
} catch (err) {
|
||||
this._error = err;
|
||||
this._error = err.message || "Unknown error";
|
||||
} finally {
|
||||
this._submitting = false;
|
||||
}
|
||||
|
@ -84,7 +84,7 @@ class DialogPersonDetail extends LitElement {
|
||||
<ha-entities-picker
|
||||
.hass=${this.hass}
|
||||
.value=${this._deviceTrackers}
|
||||
domainFilter="device_tracker"
|
||||
domain-filter="device_tracker"
|
||||
.pickedEntityLabel=${this.hass.localize(
|
||||
"ui.panel.config.person.detail.device_tracker_picked"
|
||||
)}
|
||||
|
@ -560,10 +560,10 @@
|
||||
"header": "Area Registry",
|
||||
"introduction": "Areas are used to organize where devices are. This information will be used throughout Home Assistant to help you in organizing your interface, permissions and integrations with other systems.",
|
||||
"introduction2": "To place devices in an area, use the link below to navigate to the integrations page and then click on a configured integration to get to the device cards.",
|
||||
"integrations_page": "Integrations page"
|
||||
"integrations_page": "Integrations page",
|
||||
"no_areas": "Looks like you have no areas yet!",
|
||||
"create_area": "CREATE AREA"
|
||||
},
|
||||
"no_areas": "Looks like you have no areas yet!",
|
||||
"create_area": "CREATE AREA",
|
||||
"editor": {
|
||||
"default_name": "New Area",
|
||||
"delete": "DELETE",
|
||||
|
Loading…
x
Reference in New Issue
Block a user