User in Markdown (#5393)

This commit is contained in:
Zack Arnett 2020-04-01 11:17:52 -04:00 committed by GitHub
parent e54d904e4c
commit da229d9b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,10 @@ export class HuiMarkdownCard extends LitElement implements LovelaceCard {
{
template: this._config.content,
entity_ids: this._config.entity_id,
variables: { config: this._config },
variables: {
config: this._config,
user: this._hass.user!.name,
},
}
);
this._unsubRenderTemplate.catch(() => {