wait for connect on sensor

This commit is contained in:
Nitwel 2023-12-10 19:25:15 +01:00
parent 70c18fc5e7
commit 01eabd22b3

View File

@ -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)