// #####
// ##### Get the LitElement and HTML classes from an already defined HA Lovelace class
// #####
var LitElement = LitElement || Object.getPrototypeOf(customElements.get("home-assistant-main"));
var html = LitElement.prototype.html;
// #####
// ##### Custom Card Definition begins
// #####
class DarkSkyWeatherCard extends LitElement {
// #####
// ##### Define Render Template
// #####
render() {
// Handle Configuration Flags
// var icons = this.config.static_icons ? "static" : "animated";
var currentText = this.config.entity_current_text ? html`${this._hass.states[this.config.entity_current_text].state}` : ``;
var apparentTemp = this.config.entity_apparent_temp ? html`${this.localeText.feelsLike} ${this.current.apparent} ${this.getUOM("temperature")}` : ``;
var summary = this.config.entity_daily_summary ? html`
${this._hass.states[this.config.entity_daily_summary].state}` : ``;
var separator = this.config.show_separator ? html`