Skip to content

Commit

Permalink
use request snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
twrecked committed Mar 18, 2020
1 parent 58ca4a2 commit 59b02f3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dist/hass-aarlo.js
Original file line number Diff line number Diff line change
Expand Up @@ -936,13 +936,12 @@ class AarloGlance extends LitElement {

async wsUpdateSnapshot() {
try {
const {content_type: contentType, content} = await this._hass.callWS({
type: "aarlo_snapshot_image",
entity_id: this._s.cameraId,
});
// no longer wait for return...
// add aarlo_take_snapshot
return await this._hass.callWS({
type: "aarlo_request_snapshot",
entity_id: this._s.cameraId
})
} catch (err) {
return null
}
}

Expand Down

0 comments on commit 59b02f3

Please sign in to comment.