LG ESS: complete fix of npe
This commit is contained in:
parent
bd91963286
commit
f217a892d0
1 changed files with 2 additions and 2 deletions
|
|
@ -70,8 +70,8 @@ func GetInstance(uri, password string, cache time.Duration) (*Com, error) {
|
|||
|
||||
// caches the data access for the "cache" time duration
|
||||
// sends a new request to the pcs if the cache is expired and Data() requested
|
||||
inst.cachedData = provider.NewCached(func() (interface{}, error) {
|
||||
return inst.refreshData()
|
||||
instance.cachedData = provider.NewCached(func() (interface{}, error) {
|
||||
return instance.refreshData()
|
||||
}, cache).InterfaceGetter()
|
||||
|
||||
// do first login if no authKey exists and uri and password exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue