2024-01-25 17:29:33 +02:00
|
|
|
extends StoreClass
|
2024-03-17 01:14:31 +02:00
|
|
|
## Stores general settings for the app
|
2024-01-25 17:29:33 +02:00
|
|
|
|
2024-03-15 20:27:45 +02:00
|
|
|
const StoreClass = preload ("./store.gd")
|
2024-01-25 17:29:33 +02:00
|
|
|
|
2024-03-17 01:14:31 +02:00
|
|
|
## The adapter to use for connecting with a backend
|
2024-01-25 17:29:33 +02:00
|
|
|
var type: String = "HASS_WS"
|
|
|
|
var url: String = ""
|
|
|
|
var token: String = ""
|
2024-03-17 01:14:31 +02:00
|
|
|
|
|
|
|
## If the voice assistant should be enabled
|
2024-03-15 20:27:45 +02:00
|
|
|
var voice_assistant: bool = false
|
2024-01-25 17:29:33 +02:00
|
|
|
|
2024-03-17 18:05:45 +02:00
|
|
|
## If the onboarding process has been completed
|
|
|
|
var onboarding_complete: bool = false
|
|
|
|
|
2024-01-25 17:29:33 +02:00
|
|
|
func _init():
|
|
|
|
_save_path = "user://settings.json"
|
|
|
|
|
|
|
|
func clear():
|
|
|
|
type = "HASS_WS"
|
|
|
|
url = ""
|
2024-03-15 20:27:45 +02:00
|
|
|
token = ""
|
2024-03-17 18:05:45 +02:00
|
|
|
voice_assistant = false
|
|
|
|
onboarding_complete = false
|