immersive-home/app/lib/stores/devices.gd

14 lines
229 B
GDScript

extends StoreClass
const StoreClass = preload ("./store.gd")
func _init():
self.state = R.state({
"devices": []
})
HomeApi.on_connect.connect(func():
self.state.devices=await HomeApi.get_devices()
)
func clear():
pass