1
- class GithubEntityRow extends Polymer . Element {
1
+ import { html , LitElement } from 'https://unpkg.com/lit-element@2.0.1/lit-element.js?module' ;
2
2
3
- static get template ( ) {
4
- return Polymer . html `
3
+ class GithubEntityRow extends LitElement {
4
+
5
+ static get properties ( ) {
6
+ return {
7
+ _hass : { } ,
8
+ _config : { } ,
9
+ } ;
10
+ }
11
+
12
+ render ( ) {
13
+ return html `
5
14
< style >
6
15
.flex {
7
16
display : flex;
@@ -21,19 +30,19 @@ class GithubEntityRow extends Polymer.Element {
21
30
color : var (--primary-color );
22
31
}
23
32
</ style >
24
- < hui-generic-entity-row hass ="[[ _hass]] " config ="[[ _config]] ">
33
+ < hui-generic-entity-row . hass ="${ this . _hass } " . config ="${ this . _config } ">
25
34
< div class ="flex ">
26
- < div class ="entity " on- click ="issues " title ="Open issues ">
35
+ < div class ="entity " @ click ="${ this . issues } " title ="Open issues ">
27
36
< ha-icon class ="icon " icon ="mdi:alert-circle-outline "> </ ha-icon >
28
- < span > [[ stateObjIssues.state]] </ span >
37
+ < span > ${ this . stateObjIssues . state } </ span >
29
38
</ div >
30
- < div class ="entity " on- click ="pulls " title ="Open pull requests ">
39
+ < div class ="entity " @ click ="${ this . pulls } " title ="Open pull requests ">
31
40
< ha-icon class ="icon " icon ="mdi:source-pull "> </ ha-icon >
32
- < span > [[ stateObjPRs.state]] </ span >
41
+ < span > ${ this . stateObjPRs . state } </ span >
33
42
</ div >
34
- < div class ="entity " on- click ="stars " title ="Stargazers ">
43
+ < div class ="entity " @ click ="${ this . stars } " title ="Stargazers ">
35
44
< ha-icon class ="icon " icon ="mdi:star "> </ ha-icon >
36
- < span > [[ stateObjStars.state]] </ span >
45
+ < span > ${ this . stateObjStars . state } </ span >
37
46
</ div >
38
47
</ div >
39
48
</ hui-generic-entity-row >
0 commit comments