"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[675],{675:function(t,e,n){n.r(e),n.d(e,{default:function(){return x}});n(8309);var a=n(6252),l=n(3577),i={class:"entity sensor-container"},u={class:"head"},r={class:"icon"},o={class:"label"},s=["textContent"],c=["textContent"];function d(t,e,n,d,v,p){var f=(0,a.up)("EntityIcon");return(0,a.wg)(),(0,a.iD)("div",i,[(0,a._)("div",u,[(0,a._)("div",r,[(0,a.Wm)(f,{entity:t.value,loading:t.loading,error:t.error},null,8,["entity","loading","error"])]),(0,a._)("div",o,[(0,a._)("div",{class:"name",textContent:(0,l.zw)(t.value.name)},null,8,s)]),(0,a._)("div",{class:"value-container",textContent:(0,l.zw)(p.displayValue)},null,8,c)])])}n(1539),n(9714),n(6977);var v=n(7909),p=n(1706),f={name:"PercentSensor",components:{EntityIcon:p["default"]},mixins:[v["default"]],computed:{displayValue:function(){if(null==this.value.value)return null;var t=100*this.value.value;return(t.toString()==t.toFixed(0)?t.toFixed(0):t.toFixed(1))+"%"}}},y=n(3744);const h=(0,y.Z)(f,[["render",d],["__scopeId","data-v-1b6c81c2"]]);var x=h}}]);
//# sourceMappingURL=675-legacy.6f3d0433.js.map