mirror of
https://github.com/hassio-addons/bashio.git
synced 2025-05-06 20:11:24 +00:00
Fix caching API response caching bug (#48)
This commit is contained in:
parent
abd81ec1c9
commit
71aeb066fb
3 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ function bashio::os() {
|
|||
fi
|
||||
|
||||
if bashio::cache.exists 'os.info'; then
|
||||
info=$(bashio::cache.get 'supervisor.os')
|
||||
info=$(bashio::cache.get 'os.info')
|
||||
else
|
||||
info=$(bashio::api.supervisor GET /os/info false)
|
||||
bashio::cache.set 'os.info' "${info}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue