"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[8998],{18998:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var l=n(20641),a=n(90033);const i={class:"entity sensor-container"},s={class:"head"},u={class:"icon"},o={class:"label"},r=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){const f=(0,l.g2)("EntityIcon");return(0,l.uX)(),(0,l.CE)("div",i,[(0,l.Lk)("div",s,[(0,l.Lk)("div",u,[(0,l.bF)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,l.Lk)("div",o,[(0,l.Lk)("div",{class:"name",textContent:(0,a.v_)(t.value.name)},null,8,r)]),(0,l.Lk)("div",{class:"value-container",textContent:(0,a.v_)(p.displayValue)},null,8,c)])])}var v=n(14897),p=n(73818),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue(){if(null==this.value.value)return null;let t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},k=n(66262);const y=(0,k.A)(f,[["render",d],["__scopeId","data-v-1b6c81c2"]]);var h=y}}]);
//# sourceMappingURL=8998.16d63c5d.js.map