File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
0.3.0a1: set up stream view programatically
2
2
add both locks and lights to the stream view
3
3
remove old configuration support
4
+ print version out when requested
4
5
0.3.0a0: moved to HTMLElement
5
6
fixed lock/light in stream player
6
7
fixed bell2 display
Original file line number Diff line number Diff line change 2
2
* @module Lovelace class for accessing Arlo camera through the AArlo
3
3
* module.
4
4
*
5
- * this._version = "0.3.0a1"
6
- *
7
5
* Startup Notes:
8
6
* - hass(); called at startup; set initial internal status and then updates
9
7
* image element data
@@ -106,6 +104,9 @@ class AarloGlance extends HTMLElement {
106
104
constructor ( ) {
107
105
super ( ) ;
108
106
107
+ // current version
108
+ this . _version = "0.3.0a1"
109
+
109
110
// State and config.
110
111
this . _ready = "stopped"
111
112
this . _hass = null ;
@@ -1062,6 +1063,12 @@ class AarloGlance extends HTMLElement {
1062
1063
// Grab name if there
1063
1064
cc . name = _value ( config . name , null )
1064
1065
1066
+ // Get the version out.
1067
+ if ( "version" in config ) {
1068
+ this . throwError ( `version: ${ this . _version } ` )
1069
+ return
1070
+ }
1071
+
1065
1072
// Save layout
1066
1073
cc . image_top = config . image_top
1067
1074
cc . image_bottom = config . image_bottom
You can’t perform that action at this time.
0 commit comments