Skip to content

Commit

Permalink
Fix hacs (#160)
Browse files Browse the repository at this point in the history
* Fix HACS install.
Bump revision.

* Fix HACS install.
Bump revision.
  • Loading branch information
twrecked authored Sep 9, 2024
1 parent eec8e48 commit fbc353f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Version 0.3

### **Be warned, 0.3 is in alpha**
### **Be warned, 0.3 is in beta**

It's working for me, but it's very alpha so be prepared to return to
It's working for me, but it's beta so be prepared to return to
version 0.2 if things go wrong.

I've put it out there so people can try it if they want. The underlying
Expand Down
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.3.0b3:
fix HACS install
0.3.0a2: check for region null value
support chromecast devices
0.3.0a1: set up stream view programatically
Expand Down
2 changes: 1 addition & 1 deletion custom_cards.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"aarlo-glance": {
"changelog": "https://github.com/twrecked/lovelace-hass-aarlo/blob/master/changelog",
"remote_location": "https://raw.githubusercontent.com/twrecked/lovelace-hass-aarlo/master/dist/hass-aarlo.js",
"version": "0.3.0a2",
"version": "0.3.0b3",
"visit_repo": "https://github.com/twrecked/lovelace-hass-aarlo"
}
}
9 changes: 3 additions & 6 deletions dist/hass-aarlo.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class AarloGlance extends HTMLElement {
super();

// current version
this._version = "0.3.0a2"
this._version = "0.3.0b3"

// State and config.
this._ready = "stopped"
Expand Down Expand Up @@ -758,10 +758,8 @@ class AarloGlance extends HTMLElement {
// FUNCTIONS
if (this.cs.state === 'off') {
this.cs.details.stream = _tsi(this._i.image.feature_disabled, 'off', 'mdi:play')
} else if(this.cs.state !== 'streaming') {
this.cs.details.stream = _tsi(this._i.image.start_stream, 'on', 'mdi:play')
} else {
this.cs.details.stream = _tsi(this._i.image.stop_stream, 'on', 'mdi:stop')
this.cs.details.stream = _tsi(this._i.image.start_stream, 'on', 'mdi:play')
}

if ( this.cs.state === 'off' ) {
Expand Down Expand Up @@ -2246,8 +2244,7 @@ class AarloGlance extends HTMLElement {
}

showOrStopStream() {
const camera = this._getState(this.cc.id,'unknown');
if ( camera.state === 'streaming' ) {
if (this.gs.stream !== null) {
this.stopStream()
} else {
this.gs.viewer = this.getViewType( this.cc )
Expand Down
3 changes: 3 additions & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "lovelace-hass-aarlo"
}

0 comments on commit fbc353f

Please sign in to comment.