wait for connect on sensor
This commit is contained in:
parent
70c18fc5e7
commit
01eabd22b3
|
@ -5,6 +5,9 @@ extends StaticBody3D
|
|||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
if HomeApi.has_connected() == false:
|
||||
await HomeApi.on_connect
|
||||
|
||||
var stateInfo = await HomeApi.get_state(entity_id)
|
||||
set_text(stateInfo)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user