diff --git a/lovelace-home-feed-card.js b/lovelace-home-feed-card.js index 82f6b94..62fdea9 100644 --- a/lovelace-home-feed-card.js +++ b/lovelace-home-feed-card.js @@ -240,7 +240,7 @@ const Q=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShad max-width: calc(90vw - 32px); } } - `}}customElements.define("card-tools-popup",n)}const i=document.querySelector("home-assistant")||document.querySelector("hc-root");if(!i)return;let r=await ie(i,"$ card-tools-popup");var o;if(r||(r=document.createElement("card-tools-popup"),i.shadowRoot.appendChild(r),o=r,document.querySelector("hc-main")?document.querySelector("hc-main").provideHass(o):document.querySelector("home-assistant")&&document.querySelector("home-assistant").provideHass(o)),!window._moreInfoDialogListener){const e=async e=>{if(e.state&&"cardToolsPopup"in e.state)if(e.state.cardToolsPopup){const{title:t,card:a,large:n,style:s,fullscreen:i}=e.state.params;ce(t,a,n,s,i)}else r.closeDialog()};window.addEventListener("popstate",e),window._moreInfoDialogListener=!0}history.replaceState({cardToolsPopup:!1},""),history.pushState({cardToolsPopup:!0,params:{title:e,card:t,large:a,style:n,fullscreen:s}},""),r.showDialog(e,t,a,n,s)}var he=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,fe="[^\\s]+",ye=/\[([^]*?)\]/gm;function pe(e,t){for(var a=[],n=0,s=e.length;n-1?n:null}};function ge(e){for(var t=[],a=1;a3?0:(e-e%10!=10?1:0)*e%10]}},we=ge({},ve),De=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Se=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+Se(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Se(Math.floor(Math.abs(t)/60),2)+":"+Se(Math.abs(t)%60,2)}},be=function(e){return+e-1},He=[null,"[1-9]\\d?"],xe=[null,fe],Oe=["isPm",fe,function(e,t){var a=e.toLowerCase();return a===t.amPm[0]?0:a===t.amPm[1]?1:null}],je=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var a=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?a:-a}return 0}],Pe={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+fe,function(e){return parseInt(e,10)}],M:["month","[1-9]\\d?",be],MM:["month","\\d\\d",be],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:He,dd:He,ddd:xe,dddd:xe,MMM:["month",fe,Me("monthNamesShort")],MMMM:["month",fe,Me("monthNames")],a:Oe,A:Oe,ZZ:je,Z:je},Ee={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"};var We={format:function(e,t,a){if(void 0===t&&(t=Ee.default),void 0===a&&(a={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var n=[];t=(t=Ee[t]||t).replace(ye,(function(e,t){return n.push(t),"@@@"}));var s=ge(ge({},we),a);return(t=t.replace(he,(function(t){return Te[t](e,s)}))).replace(/@@@/g,(function(){return n.shift()}))},parse:function(e,t,a){if(void 0===a&&(a={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=Ee[t]||t,e.length>1e3)return null;var n={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],i=[],r=t.replace(ye,(function(e,t){return i.push(De(t)),"@@@"})),o={},d={};r=De(r).replace(he,(function(e){var t=Pe[e],a=t[0],n=t[1],i=t[3];if(o[a])throw new Error("Invalid format. "+a+" specified twice in format");return o[a]=!0,i&&(d[i]=!0),s.push(t),"("+n+")"})),Object.keys(d).forEach((function(e){if(!o[e])throw new Error("Invalid format. "+e+" is required in specified format")})),r=r.replace(/@@@/g,(function(){return i.shift()}));var u=e.match(new RegExp(r,"i"));if(!u)return null;for(var l=ge(ge({},we),a),_=1;_e.toLocaleString(t,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"}):e=>We.format(e,"haDateTime");const Ne=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}()?(e,t)=>e.toLocaleDateString(locales,{year:"numeric",month:"long",day:"numeric"}):e=>We.format(e,"mediumDate");const Fe=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}()?(e,t)=>e.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit"}):e=>We.format(e,"shortTime");var Ae=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"})}:function(e){return We.format(e,"mediumDate")},Re=function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleString(t,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}:function(e){return We.format(e,"haDateTime")},Ie=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit"})}:function(e){return We.format(e,"shortTime")};function ze(e){return e.substr(0,e.indexOf("."))}function $e(e,t,a){if("unknown"===t.state||"unavailable"===t.state)return e("state.default."+t.state);if(t.attributes.unit_of_measurement)return t.state+" "+t.attributes.unit_of_measurement;var n=function(e){return ze(e.entity_id)}(t);if("input_datetime"===n){var s;if(!t.attributes.has_time)return s=new Date(t.attributes.year,t.attributes.month-1,t.attributes.day),Ae(s,a);if(!t.attributes.has_date){var i=new Date;return s=new Date(i.getFullYear(),i.getMonth(),i.getDay(),t.attributes.hour,t.attributes.minute),Ie(s,a)}return s=new Date(t.attributes.year,t.attributes.month-1,t.attributes.day,t.attributes.hour,t.attributes.minute),Re(s,a)}return t.attributes.device_class&&e("component."+n+".state."+t.attributes.device_class+"."+t.state)||e("component."+n+".state._."+t.state)||t.state}var Ue=["closed","locked","off"],Je=(new Set(["fan","input_boolean","light","switch","group","automation"]),function(e,t,a,n){n=n||{},a=null==a?{}:a;var s=new Event(t,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return s.detail=a,e.dispatchEvent(s),s});new Set(["call-service","divider","section","weblink","cast","select"]);var Ve=function(e){Je(window,"haptic",e)},qe=function(e,t,a){void 0===a&&(a=!1),a?history.replaceState(null,"",t):history.pushState(null,"",t),Je(window,"location-changed",{replace:a})},Ge=function(e,t){return function(e,t,a){void 0===a&&(a=!0);var n,s=ze(t),i="group"===s?"homeassistant":s;switch(s){case"lock":n=a?"unlock":"lock";break;case"cover":n=a?"open_cover":"close_cover";break;default:n=a?"turn_on":"turn_off"}return e.callService(i,n,{entity_id:t})}(e,t,Ue.includes(e.states[t].state))};a(1),a(3),a(4),a(5),a(6),a(7),a(8),a(9),a(10),a(11),a(12),a(13),a(14),a(15),a(16),a(17),a(18),a(19),a(20),a(21),a(22),a(23),a(24),a(25),a(26),a(27),a(28),a(29),a(30),a(31),a(32),a(33),a(34),a(35),a(36),a(37),a(38),a(39),a(40),a(41),a(42),a(43),a(44),a(45),a(46),a(47),a(48),a(49),a(50),a(51),a(52),a(53),a(54),a(55),a(56),a(57),a(58),a(59),a(60),a(61),a(62);const Ze=function(e){var t=e.calendar();switch(e.locale()){case"ca":case"de":case"de-ch":case"es":t=(t=t.replace(" "+e.format("LT"),"")).substring(0,t.lastIndexOf(" ",t.lastIndexOf(" ")-1));break;case"et":case"hi":case"ta":case"te":t=(t=t.replace(" "+e.format("LT"),"")).replace(",","");break;case"eu":case"hu":case"zh-cn":case"zh-hk":(t=t.replace(""+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ")));break;case"hy-am":case"ar":(t=t.replace(" "+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ",t.lastIndexOf(" ")-1)));break;case"ja":case"ko":case"lt":case"sv":t=t.replace(" "+e.format("LT"),"");break;default:(t=t.replace(" "+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ")))}return t};console.info("%c HOME-FEED-CARD \n%c Version 0.6.3b2 ","color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray");customElements.define("home-feed-card",class extends ae{constructor(){super(),this.pageId=location.pathname.replace(/\//g,"_"),this.configuredScrollbars=!1,this.loadedNotifications=!1,this.refreshingNotifications=!1,this.feedContent=null,this.moment=a(0),this.browser_language=window.navigator.userLanguage||window.navigator.language,"hy"==this.browser_language&&(this.browser_language="hy-am"),this.moment.locale(this.browser_language),this.preloadElementsIfNeeded()}connectedCallback(){super.connectedCallback(),window.hassConnection.then(e=>{this._unsubNotifications=e.conn.subscribeEvents(()=>{this.refreshNotifications().then(()=>{})},"persistent_notifications_updated"),this._hass&&(this.refreshNotifications().then(()=>{}),this.requestUpdate())})}disconnectedCallback(){this._unsubNotifications&&this._unsubNotifications.then(e=>{e(),this._unsubNotifications=void 0}),super.disconnectedCallback()}static get properties(){return{_config:{type:Object},hass:{type:Object}}}get pageRoot(){let e=document.querySelector("home-assistant");return e=e&&e.shadowRoot,e=e&&e.querySelector("home-assistant-main"),e=e&&e.shadowRoot,e=e&&e.querySelector("app-drawer-layout partial-panel-resolver"),e=e&&e.shadowRoot||e,e=e&&e.querySelector("ha-panel-lovelace"),e=e&&e.shadowRoot,e=e&&e.querySelector("hui-root"),e}static get styles(){return ee` + `}}customElements.define("card-tools-popup",n)}const i=document.querySelector("home-assistant")||document.querySelector("hc-root");if(!i)return;let r=await ie(i,"$ card-tools-popup");var o;if(r||(r=document.createElement("card-tools-popup"),i.shadowRoot.appendChild(r),o=r,document.querySelector("hc-main")?document.querySelector("hc-main").provideHass(o):document.querySelector("home-assistant")&&document.querySelector("home-assistant").provideHass(o)),!window._moreInfoDialogListener){const e=async e=>{if(e.state&&"cardToolsPopup"in e.state)if(e.state.cardToolsPopup){const{title:t,card:a,large:n,style:s,fullscreen:i}=e.state.params;ce(t,a,n,s,i)}else r.closeDialog()};window.addEventListener("popstate",e),window._moreInfoDialogListener=!0}history.replaceState({cardToolsPopup:!1},""),history.pushState({cardToolsPopup:!0,params:{title:e,card:t,large:a,style:n,fullscreen:s}},""),r.showDialog(e,t,a,n,s)}var he=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,fe="[^\\s]+",ye=/\[([^]*?)\]/gm;function pe(e,t){for(var a=[],n=0,s=e.length;n-1?n:null}};function ge(e){for(var t=[],a=1;a3?0:(e-e%10!=10?1:0)*e%10]}},we=ge({},ve),De=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Se=function(e,t){for(void 0===t&&(t=2),e=String(e);e.length0?"-":"+")+Se(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+Se(Math.floor(Math.abs(t)/60),2)+":"+Se(Math.abs(t)%60,2)}},be=function(e){return+e-1},He=[null,"[1-9]\\d?"],xe=[null,fe],Oe=["isPm",fe,function(e,t){var a=e.toLowerCase();return a===t.amPm[0]?0:a===t.amPm[1]?1:null}],je=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var a=60*+t[1]+parseInt(t[2],10);return"+"===t[0]?a:-a}return 0}],Pe={D:["day","[1-9]\\d?"],DD:["day","\\d\\d"],Do:["day","[1-9]\\d?"+fe,function(e){return parseInt(e,10)}],M:["month","[1-9]\\d?",be],MM:["month","\\d\\d",be],YY:["year","\\d\\d",function(e){var t=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+e>68?t-1:t)+e)}],h:["hour","[1-9]\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","[1-9]\\d?"],HH:["hour","\\d\\d"],m:["minute","[1-9]\\d?"],mm:["minute","\\d\\d"],s:["second","[1-9]\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(e){return 100*+e}],SS:["millisecond","\\d\\d",function(e){return 10*+e}],SSS:["millisecond","\\d{3}"],d:He,dd:He,ddd:xe,dddd:xe,MMM:["month",fe,Me("monthNamesShort")],MMMM:["month",fe,Me("monthNames")],a:Oe,A:Oe,ZZ:je,Z:je},Ee={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"};var We={format:function(e,t,a){if(void 0===t&&(t=Ee.default),void 0===a&&(a={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var n=[];t=(t=Ee[t]||t).replace(ye,(function(e,t){return n.push(t),"@@@"}));var s=ge(ge({},we),a);return(t=t.replace(he,(function(t){return Te[t](e,s)}))).replace(/@@@/g,(function(){return n.shift()}))},parse:function(e,t,a){if(void 0===a&&(a={}),"string"!=typeof t)throw new Error("Invalid format in fecha parse");if(t=Ee[t]||t,e.length>1e3)return null;var n={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},s=[],i=[],r=t.replace(ye,(function(e,t){return i.push(De(t)),"@@@"})),o={},d={};r=De(r).replace(he,(function(e){var t=Pe[e],a=t[0],n=t[1],i=t[3];if(o[a])throw new Error("Invalid format. "+a+" specified twice in format");return o[a]=!0,i&&(d[i]=!0),s.push(t),"("+n+")"})),Object.keys(d).forEach((function(e){if(!o[e])throw new Error("Invalid format. "+e+" is required in specified format")})),r=r.replace(/@@@/g,(function(){return i.shift()}));var u=e.match(new RegExp(r,"i"));if(!u)return null;for(var l=ge(ge({},we),a),_=1;_e.toLocaleString(t,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"}):e=>We.format(e,"haDateTime");const Ne=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}()?(e,t)=>e.toLocaleDateString(locales,{year:"numeric",month:"long",day:"numeric"}):e=>We.format(e,"mediumDate");const Fe=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}()?(e,t)=>e.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit"}):e=>We.format(e,"shortTime");var Ae=function(){try{(new Date).toLocaleDateString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"})}:function(e){return We.format(e,"mediumDate")},Re=function(){try{(new Date).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleString(t,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}:function(e){return We.format(e,"haDateTime")},Ie=function(){try{(new Date).toLocaleTimeString("i")}catch(e){return"RangeError"===e.name}return!1}()?function(e,t){return e.toLocaleTimeString(t,{hour:"numeric",minute:"2-digit"})}:function(e){return We.format(e,"shortTime")};function ze(e){return e.substr(0,e.indexOf("."))}function $e(e,t,a){if("unknown"===t.state||"unavailable"===t.state)return e("state.default."+t.state);if(t.attributes.unit_of_measurement)return t.state+" "+t.attributes.unit_of_measurement;var n=function(e){return ze(e.entity_id)}(t);if("input_datetime"===n){var s;if(!t.attributes.has_time)return s=new Date(t.attributes.year,t.attributes.month-1,t.attributes.day),Ae(s,a);if(!t.attributes.has_date){var i=new Date;return s=new Date(i.getFullYear(),i.getMonth(),i.getDay(),t.attributes.hour,t.attributes.minute),Ie(s,a)}return s=new Date(t.attributes.year,t.attributes.month-1,t.attributes.day,t.attributes.hour,t.attributes.minute),Re(s,a)}return t.attributes.device_class&&e("component."+n+".state."+t.attributes.device_class+"."+t.state)||e("component."+n+".state._."+t.state)||t.state}var Ue=["closed","locked","off"],Je=(new Set(["fan","input_boolean","light","switch","group","automation"]),function(e,t,a,n){n=n||{},a=null==a?{}:a;var s=new Event(t,{bubbles:void 0===n.bubbles||n.bubbles,cancelable:Boolean(n.cancelable),composed:void 0===n.composed||n.composed});return s.detail=a,e.dispatchEvent(s),s});new Set(["call-service","divider","section","weblink","cast","select"]);var Ve=function(e){Je(window,"haptic",e)},qe=function(e,t,a){void 0===a&&(a=!1),a?history.replaceState(null,"",t):history.pushState(null,"",t),Je(window,"location-changed",{replace:a})},Ge=function(e,t){return function(e,t,a){void 0===a&&(a=!0);var n,s=ze(t),i="group"===s?"homeassistant":s;switch(s){case"lock":n=a?"unlock":"lock";break;case"cover":n=a?"open_cover":"close_cover";break;default:n=a?"turn_on":"turn_off"}return e.callService(i,n,{entity_id:t})}(e,t,Ue.includes(e.states[t].state))};a(1),a(3),a(4),a(5),a(6),a(7),a(8),a(9),a(10),a(11),a(12),a(13),a(14),a(15),a(16),a(17),a(18),a(19),a(20),a(21),a(22),a(23),a(24),a(25),a(26),a(27),a(28),a(29),a(30),a(31),a(32),a(33),a(34),a(35),a(36),a(37),a(38),a(39),a(40),a(41),a(42),a(43),a(44),a(45),a(46),a(47),a(48),a(49),a(50),a(51),a(52),a(53),a(54),a(55),a(56),a(57),a(58),a(59),a(60),a(61),a(62);const Ze=function(e){var t=e.calendar();switch(e.locale()){case"ca":case"de":case"de-ch":case"es":t=(t=t.replace(" "+e.format("LT"),"")).substring(0,t.lastIndexOf(" ",t.lastIndexOf(" ")-1));break;case"et":case"hi":case"ta":case"te":t=(t=t.replace(" "+e.format("LT"),"")).replace(",","");break;case"eu":case"hu":case"zh-cn":case"zh-hk":(t=t.replace(""+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ")));break;case"hy-am":case"ar":(t=t.replace(" "+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ",t.lastIndexOf(" ")-1)));break;case"ja":case"ko":case"lt":case"sv":t=t.replace(" "+e.format("LT"),"");break;default:(t=t.replace(" "+e.format("LT"),"")).includes(" ")&&(t=t.substring(0,t.lastIndexOf(" ")))}return t};console.info("%c HOME-FEED-CARD \n%c Version 0.6.3 ","color: orange; font-weight: bold; background: black","color: white; font-weight: bold; background: dimgray");customElements.define("home-feed-card",class extends ae{constructor(){super(),this.pageId=location.pathname.replace(/\//g,"_"),this.configuredScrollbars=!1,this.loadedNotifications=!1,this.refreshingNotifications=!1,this.feedContent=null,this.moment=a(0),this.browser_language=window.navigator.userLanguage||window.navigator.language,"hy"==this.browser_language&&(this.browser_language="hy-am"),this.moment.locale(this.browser_language),this.preloadElementsIfNeeded()}connectedCallback(){super.connectedCallback(),window.hassConnection.then(e=>{this._unsubNotifications=e.conn.subscribeEvents(()=>{this.refreshNotifications().then(()=>{})},"persistent_notifications_updated"),this._hass&&(this.refreshNotifications().then(()=>{}),this.requestUpdate())})}disconnectedCallback(){this._unsubNotifications&&this._unsubNotifications.then(e=>{e(),this._unsubNotifications=void 0}),super.disconnectedCallback()}static get properties(){return{_config:{type:Object},hass:{type:Object}}}get pageRoot(){let e=document.querySelector("home-assistant");return e=e&&e.shadowRoot,e=e&&e.querySelector("home-assistant-main"),e=e&&e.shadowRoot,e=e&&e.querySelector("app-drawer-layout partial-panel-resolver"),e=e&&e.shadowRoot||e,e=e&&e.querySelector("ha-panel-lovelace"),e=e&&e.shadowRoot,e=e&&e.querySelector("hui-root"),e}static get styles(){return ee` ha-card { padding: 0 16px 16px 16px; } diff --git a/src/version.js b/src/version.js index 4ca86d9..2abd845 100644 --- a/src/version.js +++ b/src/version.js @@ -1 +1 @@ -export const CARD_VERSION = '0.6.3b2'; \ No newline at end of file +export const CARD_VERSION = '0.6.3'; \ No newline at end of file