Frontend: show message if no states
This commit is contained in:
1 parent
5f0f06b22d
commit
dd38621352
5 files changed
+30
-4
No files matched your search
@@ -1,2 +1,2 @@
|
||||
""" DO NOT MODIFY. Auto-generated by build_frontend script """
|
||||
VERSION = "a82c6e4bf6b91042a6e891d46464275d"
|
||||
VERSION = "951c0a4e0adb70ec1f0f7e4c76955ed9"
|
||||
@@ -60,7 +60,11 @@ if(this.removeAttribute(a),d)return j(this,a,c);var e=c,f=m(this,a,e);return j(t
|
||||
{{stateObj.stateDisplay}}
|
||||
</div><div class="current">
|
||||
Currently: {{stateObj.attributes.current_temperature}} {{stateObj.attributes.unit_of_measurement}}
|
||||
</div></div></div></template><script>Polymer("state-card-thermostat",{});</script></polymer-element><polymer-element name="state-card-content" attributes="api stateObj" assetpath="polymer/cards/"><template><style>:host{display:block}</style><div id="card"></div></template><script>Polymer("state-card-content",{stateObjChanged:function(){while(this.$.card.lastChild){this.$.card.removeChild(this.$.card.lastChild)}var stateCard=document.createElement("state-card-"+this.stateObj.cardType);stateCard.api=this.api;stateCard.stateObj=this.stateObj;this.$.card.appendChild(stateCard)}});</script></polymer-element><polymer-element name="state-card" attributes="api stateObj" on-click="cardClicked" assetpath="polymer/cards/"><template><style>:host{background-color:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.098) 0 2px 4px,rgba(0,0,0,.098) 0 0 3px;transition:all .3s ease-out;position:relative;background-color:#fff;padding:16px;width:100%;cursor:pointer}</style><state-card-content stateobj="{{stateObj}}" api="{{api}}"></state-card-content></template><script>Polymer("state-card",{cardClicked:function(){this.api.showmoreInfoDialog(this.stateObj.entity_id)}});</script></polymer-element><polymer-element name="state-cards" attributes="api filter" assetpath="polymer/components/"><template><style>:host{display:block;width:100%}@media all and (min-width:764px){:host{padding-bottom:8px}.state-card{width:calc(50% - 44px);margin:8px 0 0 8px}}@media all and (min-width:1100px){.state-card{width:calc(33% - 38px)}}@media all and (min-width:1450px){.state-card{width:calc(25% - 42px)}}</style><div horizontal="" layout="" wrap=""><template repeat="{{states as state}}"><state-card class="state-card" stateobj="{{state}}" api="{{api}}"></state-card></template></div></template><script>Polymer("state-cards",{filter:null,states:[],observe:{"api.states":"filterChanged"},filterChanged:function(){if(this.filter==="customgroup"){this.states=this.api.getCustomGroups()}else{this.states=this.api.states.filter(function(state){return state.domain!="group"})}}});</script></polymer-element><polymer-element name="home-assistant-main" attributes="api" assetpath="polymer/"><template><style>core-header-panel{-webkit-overflow-scrolling:touch;background-color:#E5E5E5}core-toolbar{background:#03a9f4;color:#fff}core-toolbar.tall{height:128px}core-toolbar .bottom{opacity:0;transition:opacity .3s ease-out}core-toolbar.tall .bottom{opacity:1}paper-tab{text-transform:uppercase}paper-menu-button{margin-top:5px!important}paper-dropdown{border-radius:3px}paper-dropdown .menu{margin:0;padding:8px 0;color:#000}paper-item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}paper-item a{text-decoration:none}</style><core-header-panel fit="" mode="{{hasCustomGroups && 'waterfall-tall'}}"><core-toolbar><div flex="">Home Assistant</div><paper-icon-button icon="refresh" on-click="{{handleRefreshClick}}"></paper-icon-button><paper-icon-button icon="settings-remote" on-click="{{handleServiceClick}}"></paper-icon-button><paper-menu-button><paper-icon-button icon="more-vert" noink=""></paper-icon-button><paper-dropdown halign="right" duration="200" class="dropdown"><core-menu class="menu"><paper-item><a on-click="{{handleAddStateClick}}">Set State</a></paper-item><paper-item><a on-click="{{handleEventClick}}">Trigger Event</a></paper-item><paper-item><a on-click="{{handleLogOutClick}}">Log Out</a></paper-item></core-menu></paper-dropdown></paper-menu-button><div class="bottom fit" horizontal="" layout=""><paper-tabs id="tabsHolder" noink="" flex="" selected="0" on-core-select="{{tabClicked}}"><paper-tab>ALL</paper-tab><paper-tab data-filter="customgroup">GROUPS</paper-tab></paper-tabs></div></core-toolbar><state-cards api="{{api}}" filter="{{selectedFilter}}" class="content"></state-cards></core-header-panel></template><script>Polymer("home-assistant-main",{selectedFilter:null,hasCustomGroups:false,observe:{"api.states":"updateHasCustomGroup"},tabClicked:function(ev){if(ev.detail.isSelected){this.selectedFilter=ev.detail.item.getAttribute("data-filter")}},handleRefreshClick:function(){this.api.fetchAll()},handleEventClick:function(){this.api.showFireEventDialog()},handleServiceClick:function(){this.api.showCallServiceDialog()},handleAddStateClick:function(){this.api.showSetStateDialog()},handleLogOutClick:function(){this.api.logOut()},updateHasCustomGroup:function(){this.hasCustomGroups=this.api.getCustomGroups().length>0}});</script></polymer-element></div>
|
||||
</div></div></div></template><script>Polymer("state-card-thermostat",{});</script></polymer-element><polymer-element name="state-card-content" attributes="api stateObj" assetpath="polymer/cards/"><template><style>:host{display:block}</style><div id="card"></div></template><script>Polymer("state-card-content",{stateObjChanged:function(){while(this.$.card.lastChild){this.$.card.removeChild(this.$.card.lastChild)}var stateCard=document.createElement("state-card-"+this.stateObj.cardType);stateCard.api=this.api;stateCard.stateObj=this.stateObj;this.$.card.appendChild(stateCard)}});</script></polymer-element><polymer-element name="state-card" attributes="api stateObj" on-click="cardClicked" assetpath="polymer/cards/"><template><style>:host{border-radius:2px;box-shadow:rgba(0,0,0,.098) 0 2px 4px,rgba(0,0,0,.098) 0 0 3px;transition:all .3s ease-out;position:relative;background-color:#fff;padding:16px;width:100%;cursor:pointer}</style><state-card-content stateobj="{{stateObj}}" api="{{api}}"></state-card-content></template><script>Polymer("state-card",{cardClicked:function(){this.api.showmoreInfoDialog(this.stateObj.entity_id)}});</script></polymer-element><polymer-element name="state-cards" attributes="api filter" assetpath="polymer/components/"><template><style>:host{display:block;width:100%}@media all and (min-width:764px){:host{padding-bottom:8px}.state-card{width:calc(50% - 44px);margin:8px 0 0 8px}}@media all and (min-width:1100px){.state-card{width:calc(33% - 38px)}}@media all and (min-width:1450px){.state-card{width:calc(25% - 42px)}}.no-states-content{max-width:500px;background-color:#fff;border-radius:2px;box-shadow:rgba(0,0,0,.098) 0 2px 4px,rgba(0,0,0,.098) 0 0 3px;padding:16px;margin:0 auto}</style><div horizontal="" layout="" wrap=""><template repeat="{{states as state}}"><state-card class="state-card" stateobj="{{state}}" api="{{api}}"></state-card></template><template if="{{states.length == 0}}"><div class="no-states-content"><content></content></div></template></div></template><script>Polymer("state-cards",{filter:null,states:[],observe:{"api.states":"filterChanged"},filterChanged:function(){if(this.filter==="customgroup"){this.states=this.api.getCustomGroups()}else{this.states=this.api.states.filter(function(state){return state.domain!="group"})}}});</script></polymer-element><polymer-element name="home-assistant-main" attributes="api" assetpath="polymer/"><template><style>core-header-panel{-webkit-overflow-scrolling:touch;background-color:#E5E5E5}core-toolbar{background:#03a9f4;color:#fff}core-toolbar.tall{height:128px}core-toolbar .bottom{opacity:0;transition:opacity .3s ease-out}core-toolbar.tall .bottom{opacity:1}paper-tab{text-transform:uppercase}paper-menu-button{margin-top:5px!important}paper-dropdown{border-radius:3px}paper-dropdown .menu{margin:0;padding:8px 0;color:#000}paper-item{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}paper-item a{text-decoration:none}</style><core-header-panel fit="" mode="{{hasCustomGroups && 'waterfall-tall'}}"><core-toolbar><div flex="">Home Assistant</div><paper-icon-button icon="refresh" on-click="{{handleRefreshClick}}"></paper-icon-button><paper-icon-button icon="settings-remote" on-click="{{handleServiceClick}}"></paper-icon-button><paper-menu-button><paper-icon-button icon="more-vert" noink=""></paper-icon-button><paper-dropdown halign="right" duration="200" class="dropdown"><core-menu class="menu"><paper-item><a on-click="{{handleAddStateClick}}">Set State</a></paper-item><paper-item><a on-click="{{handleEventClick}}">Trigger Event</a></paper-item><paper-item><a on-click="{{handleLogOutClick}}">Log Out</a></paper-item></core-menu></paper-dropdown></paper-menu-button><div class="bottom fit" horizontal="" layout=""><paper-tabs id="tabsHolder" noink="" flex="" selected="0" on-core-select="{{tabClicked}}"><paper-tab>ALL</paper-tab><paper-tab data-filter="customgroup">GROUPS</paper-tab></paper-tabs></div></core-toolbar><state-cards api="{{api}}" filter="{{selectedFilter}}" class="content"><h3>Hi there!</h3><p>
|
||||
It looks like we have nothing to show you right now. It could be that we have not yet discovered all your devices but it is more likely that you have not configured Home Assistant yet.
|
||||
</p><p>
|
||||
Please see the <a href="https://home-assistant.io/getting-started/" target="_blank">Getting Started</a> section on how to setup your devices.
|
||||
</p></state-cards></core-header-panel></template><script>Polymer("home-assistant-main",{selectedFilter:null,hasCustomGroups:false,observe:{"api.states":"updateHasCustomGroup"},tabClicked:function(ev){if(ev.detail.isSelected){this.selectedFilter=ev.detail.item.getAttribute("data-filter")}},handleRefreshClick:function(){this.api.fetchAll()},handleEventClick:function(){this.api.showFireEventDialog()},handleServiceClick:function(){this.api.showCallServiceDialog()},handleAddStateClick:function(){this.api.showSetStateDialog()},handleLogOutClick:function(){this.api.logOut()},updateHasCustomGroup:function(){this.hasCustomGroups=this.api.getCustomGroups().length>0}});</script></polymer-element></div>
|
||||
<div hidden><script>(function(undefined){var moment,VERSION="2.8.4",globalScope=typeof global!=="undefined"?global:this,oldGlobalMoment,round=Math.round,hasOwnProperty=Object.prototype.hasOwnProperty,i,YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,locales={},momentProperties=[],hasModule=typeof module!=="undefined"&&module&&module.exports,aspNetJsonRegex=/^\/?Date\((\-?\d+)/i,aspNetTimeSpanJsonRegex=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,isoDurationRegex=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,formattingTokens=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,parseTokenOneOrTwoDigits=/\d\d?/,parseTokenOneToThreeDigits=/\d{1,3}/,parseTokenOneToFourDigits=/\d{1,4}/,parseTokenOneToSixDigits=/[+\-]?\d{1,6}/,parseTokenDigits=/\d+/,parseTokenWord=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,parseTokenTimezone=/Z|[\+\-]\d\d:?\d\d/gi,parseTokenT=/T/i,parseTokenOffsetMs=/[\+\-]?\d+/,parseTokenTimestampMs=/[\+\-]?\d+(\.\d{1,3})?/,parseTokenOneDigit=/\d/,parseTokenTwoDigits=/\d\d/,parseTokenThreeDigits=/\d{3}/,parseTokenFourDigits=/\d{4}/,parseTokenSixDigits=/[+-]?\d{6}/,parseTokenSignedNumber=/[+-]?\d+/,isoRegex=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,isoFormat="YYYY-MM-DDTHH:mm:ssZ",isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],isoTimes=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],parseTimezoneChunker=/([\+\-]|\d\d)/gi,proxyGettersAndSetters="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),unitMillisecondFactors={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},unitAliases={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},camelFunctions={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},formatFunctions={},relativeTimeThresholds={s:45,m:45,h:22,d:26,M:11},ordinalizeTokens="DDD w W M D d".split(" "),paddedTokens="M D H h m s w W".split(" "),formatTokenFunctions={M:function(){return this.month()+1},MMM:function(format){return this.localeData().monthsShort(this,format)},MMMM:function(format){return this.localeData().months(this,format)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(format){return this.localeData().weekdaysMin(this,format)},ddd:function(format){return this.localeData().weekdaysShort(this,format)},dddd:function(format){return this.localeData().weekdays(this,format)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return leftZeroFill(this.year()%100,2)},YYYY:function(){return leftZeroFill(this.year(),4)},YYYYY:function(){return leftZeroFill(this.year(),5)},YYYYYY:function(){var y=this.year(),sign=y>=0?"+":"-";return sign+leftZeroFill(Math.abs(y),6)},gg:function(){return leftZeroFill(this.weekYear()%100,2)},gggg:function(){return leftZeroFill(this.weekYear(),4)},ggggg:function(){return leftZeroFill(this.weekYear(),5)},GG:function(){return leftZeroFill(this.isoWeekYear()%100,2)},GGGG:function(){return leftZeroFill(this.isoWeekYear(),4)},GGGGG:function(){return leftZeroFill(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),true)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),false)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return toInt(this.milliseconds()/100)},SS:function(){return leftZeroFill(toInt(this.milliseconds()/10),2)},SSS:function(){return leftZeroFill(this.milliseconds(),3)},SSSS:function(){return leftZeroFill(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-"}return b+leftZeroFill(toInt(a/60),2)+":"+leftZeroFill(toInt(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";if(a<0){a=-a;b="-"}return b+leftZeroFill(toInt(a/60),2)+leftZeroFill(toInt(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},deprecations={},lists=["months","monthsShort","weekdaLine truncated
|
||||
}else if(!!(match=isoDurationRegex.exec(input))){sign=match[1]==="-"?-1:1;parseIso=function(inp){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign};duration={y:parseIso(match[2]),M:parseIso(match[3]),d:parseIso(match[4]),h:parseIso(match[5]),m:parseIso(match[6]),s:parseIso(match[7]),w:parseIso(match[8])}}else if(typeof duration==="object"&&("from"in duration||"to"in duration)){diffRes=momentsDifference(moment(duration.from),moment(duration.to));duration={};duration.ms=diffRes.milliseconds;duration.M=diffRes.months}ret=new Duration(duration);if(moment.isDuration(input)&&hasOwnProp(input,"_locale")){ret._locale=input._locale}return ret};moment.version=VERSION;moment.defaultFormat=isoFormat;moment.ISO_8601=function(){};moment.momentProperties=momentProperties;moment.updateOffset=function(){};moment.relativeTimeThreshold=function(threshold,limit){if(relativeTimeThresholds[threshold]===undefined){return false}if(limit===undefined){return relativeTimeThresholds[threshold]}relativeTimeThresholds[threshold]=limit;return true};moment.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",function(key,value){return moment.locale(key,value)});moment.locale=function(key,values){var data;if(key){if(typeof values!=="undefined"){data=moment.defineLocale(key,values)}else{data=moment.localeData(key)}if(data){moment.duration._locale=moment._locale=data}}return moment._locale._abbr};moment.defineLocale=function(name,values){if(values!==null){values.abbr=name;if(!locales[name]){locales[name]=new Locale}locales[name].set(values);moment.locale(name);return locales[name]}else{delete locales[name];return null}};moment.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",function(key){return moment.localeData(key)});moment.localeData=function(key){var locale;if(key&&key._locale&&key._locale._abbr){key=key._locale._abbr}if(!key){return moment._locale}if(!isArray(key)){locale=loadLocale(key);if(locale){return locale}key=[key]}return chooseLocale(key)};moment.isMoment=function(obj){return obj instanceof Moment||obj!=null&&hasOwnProp(obj,"_isAMomentObject")};moment.isDuration=function(obj){return obj instanceof Duration};for(i=lists.length-1;i>=0;--i){makeList(lists[i])}moment.normalizeUnits=function(units){return normalizeUnits(units)};moment.invalid=function(flags){var m=moment.utc(NaN);if(flags!=null){extend(m._pf,flags)}else{m._pf.userInvalidated=true}return m};moment.parseZone=function(){return moment.apply(null,arguments).parseZone()};moment.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};extend(moment.fn=Moment.prototype,{clone:function(){return moment(this)},valueOf:function(){return+this._d+(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var m=moment(this).utc();if(0<m.year()&&m.year()<=9999){if("function"===typeof Date.prototype.toISOString){return this.toDate().toISOString()}else{return formatMoment(m,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}}else{return formatMoment(m,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}},toArray:function(){var m=this;return[m.year(),m.month(),m.date(),m.hours(),m.minutes(),m.seconds(),m.milliseconds()]},isValid:function(){return isValid(this)},isDSTShifted:function(){if(this._a){return this.isValid()&&compareArrays(this._a,(this._isUTC?moment.utc(this._a):moment(this._a)).toArray())>0}return false},parsingFlags:function(){return extend({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(keepLocalTime){return this.zone(0,keepLocalTime)},local:function(keepLocalTime){if(this._isUTC){this.zone(0,keepLocalTime);this._isUTC=false;if(keepLocalTime){this.add(this._dateTzOffset(),"m")}}return this},format:function(inputString){var output=formatMoment(this,inputString||moment.defaultFormat);return this.localeData().postformat(output)},add:createAdder(1,"add"),subtract:createAdder(-1,"subtract"),diff:function(input,units,asFloat){var that=makeAs(input,this),zoneDiff=(this.zone()-that.zone())*6e4,diff,output,daysAdjust;units=normalizeUnits(units);if(units==="year"||units==="month"){diff=(this.daysInMonth()+that.daysInMonth())*432e5;output=(this.year()-that.year())*12+(this.month()-that.month());daysAdjust=this-moment(this).startOf("month")-(that-moment(that).startOf("month"));daysAdjust-=(this.zone()-moment(this).startOf("month").zone()-(that.zone()-moment(that).startOf("month").zone()))*6e4;output+=daysAdjust/diff;if(units==="year"){output=output/12}}else{diff=this-that;output=units==="second"?diff/1e3:units==="minute"?diff/6e4:units==="hour"?diff/36e5:units==="day"?(diff-zoneDiff)/864e5:units==="week"?(diff-zoneDiff)/6048e5:diff}return asFloat?output:absRound(output)},from:function(time,withoutSuffix){return moment.duration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix)},fromNowLine truncated
|
||||
({{event.listener_count}} listeners)
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<template>
|
||||
<style>
|
||||
:host {
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
box-shadow: rgba(0, 0, 0, 0.098) 0px 2px 4px, rgba(0, 0, 0, 0.098) 0px 0px 3px;
|
||||
transition: all 0.30s ease-out;
|
||||
|
||||
@@ -33,6 +33,15 @@
|
||||
width: calc(25% - 42px);
|
||||
}
|
||||
}
|
||||
|
||||
.no-states-content {
|
||||
max-width: 500px;
|
||||
background-color: #fff;
|
||||
border-radius: 2px;
|
||||
box-shadow: rgba(0, 0, 0, 0.098) 0px 2px 4px, rgba(0, 0, 0, 0.098) 0px 0px 3px;
|
||||
padding: 16px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div horizontal layout wrap>
|
||||
@@ -41,6 +50,12 @@
|
||||
<state-card class="state-card" stateObj={{state}} api={{api}}></state-card>
|
||||
</template>
|
||||
|
||||
<template if="{{states.length == 0}}">
|
||||
<div class='no-states-content'>
|
||||
<content></content>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
@@ -108,7 +108,15 @@
|
||||
<state-cards
|
||||
api="{{api}}"
|
||||
filter="{{selectedFilter}}"
|
||||
class="content"></state-cards>
|
||||
class="content">
|
||||
<h3>Hi there!</h3>
|
||||
<p>
|
||||
It looks like we have nothing to show you right now. It could be that we have not yet discovered all your devices but it is more likely that you have not configured Home Assistant yet.
|
||||
</p>
|
||||
<p>
|
||||
Please see the <a href='https://home-assistant.io/getting-started/' target='_blank'>Getting Started</a> section on how to setup your devices.
|
||||
</p>
|
||||
</state-cards>
|
||||
|
||||
</core-header-panel>
|
||||
|
||||
|
||||
Reference in new issue
Block a user