Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -130,7 +130,7 @@ def create_ui():
|
|
130 |
ezviz_choices = [f"{dev['name']} ({dev['id']})" for dev in ezviz_devices]
|
131 |
tuya_choices = [f"{dev['name']} ({dev['id']})" for dev in tuya_devices]
|
132 |
|
133 |
-
return
|
134 |
|
135 |
def start_automation(camera_choice, light_choice):
|
136 |
if not camera_choice or not light_choice:
|
@@ -202,4 +202,4 @@ def create_ui():
|
|
202 |
|
203 |
if __name__ == "__main__":
|
204 |
app = create_ui()
|
205 |
-
app.launch()
|
|
|
130 |
ezviz_choices = [f"{dev['name']} ({dev['id']})" for dev in ezviz_devices]
|
131 |
tuya_choices = [f"{dev['name']} ({dev['id']})" for dev in tuya_devices]
|
132 |
|
133 |
+
return ezviz_choices, tuya_choices
|
134 |
|
135 |
def start_automation(camera_choice, light_choice):
|
136 |
if not camera_choice or not light_choice:
|
|
|
202 |
|
203 |
if __name__ == "__main__":
|
204 |
app = create_ui()
|
205 |
+
app.launch()
|