Skip to content

Commit

Permalink
refresh when retrieving snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
pdbogen committed Jul 26, 2020
1 parent 09b2a21 commit 01ed56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func (a *Accessory) GetSnapshot() (io.ReadCloser, error) {
return nil, fmt.Errorf("missing node ID")
}

res, err := a.session.Get(fmt.Sprintf("https://%s/api/accessories/%s/image", a.NodeId, a.AccessoryId))
res, err := a.session.Get(fmt.Sprintf("https://%s/api/accessories/%s/image?refresh=true", a.NodeId, a.AccessoryId))
if err != nil {
return nil, fmt.Errorf("retrieving image: %q", err)
}
Expand Down

0 comments on commit 01ed56e

Please sign in to comment.