mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-27 06:47:20 +00:00
Fix display of no triggers text if no device is selected or device has no triggers (#3592)
This commit is contained in:
parent
7bc947ffb0
commit
3b2e02562c
@ -37,7 +37,10 @@ class HaDeviceTriggerPicker extends LitElement {
|
|||||||
@property() private _renderEmpty = false;
|
@property() private _renderEmpty = false;
|
||||||
|
|
||||||
private get _key() {
|
private get _key() {
|
||||||
if (!this.value) {
|
if (
|
||||||
|
!this.value ||
|
||||||
|
deviceAutomationTriggersEqual(this._noTrigger, this.value)
|
||||||
|
) {
|
||||||
return NO_TRIGGER_KEY;
|
return NO_TRIGGER_KEY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,4 +49,6 @@ export default class DeviceTrigger extends Component {
|
|||||||
|
|
||||||
DeviceTrigger.defaultConfig = {
|
DeviceTrigger.defaultConfig = {
|
||||||
device_id: "",
|
device_id: "",
|
||||||
|
domain: "",
|
||||||
|
entity_id: "",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user