UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

1 lines 1.35 kB
"use strict";(self.rspackChunkhome_assistant_frontend=self.rspackChunkhome_assistant_frontend||[]).push([[59454],{68845:function(t,a,s){s.a(t,async function(t,e){try{s.r(a);var i=s(40445),r=s(5124),n=s(67576),o=s(18350),h=s(36158),c=s(88249),l=s(22675),d=t([o,h]);[o,h]=d.then?(await d)():d;let u,p,b=t=>t;class v extends r.WF{render(){return this.hass&&this.stateObj?(0,r.qy)(u||(u=b` <hr> <div class="flex"> <div>${0}:</div> <ha-relative-time .hass="${0}" .datetime="${0}" capitalize></ha-relative-time> </div> <div class="actions"> <ha-button appearance="plain" size="small" @click="${0}" .disabled="${0}"> ${0} </ha-button> </div> `),this.hass.localize("ui.card.automation.last_triggered"),this.hass,this.stateObj.attributes.last_triggered,this._runActions,this.stateObj.state===l.Hh,this.hass.localize("ui.card.automation.trigger")):r.s6}_runActions(){(0,c.lB)(this.hass,this.stateObj.entity_id)}}v.styles=(0,r.AH)(p||(p=b`.flex{display:flex;justify-content:space-between}.actions{margin:var(--ha-space-2) 0;display:flex;flex-wrap:wrap;justify-content:center}hr{border-color:var(--divider-color);border-bottom:none;margin:var(--ha-space-4) 0}`)),(0,i.Cg)([(0,n.MZ)({attribute:!1})],v.prototype,"hass",void 0),(0,i.Cg)([(0,n.MZ)({attribute:!1})],v.prototype,"stateObj",void 0),v=(0,i.Cg)([(0,n.EM)("more-info-automation")],v),e()}catch(u){e(u)}})}}]);