Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,6 @@ func runRoot(cmd *cobra.Command, args []string) {
err = configureEnvironment(cmd, &conf)
}

// configure network
if err == nil {
err = networkSettings(&conf.Network)
}

// configure plugin external url
if err == nil {
// network configuration complete, start dependent services like HomeAssistant discovery
Expand Down
5 changes: 5 additions & 0 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,11 @@ func configureEnvironment(cmd *cobra.Command, conf *globalconfig.All) error {
// setup persistence
err := wrapErrorWithClass(ClassDatabase, configureDatabase(conf.Database))

// configure network
if err == nil {
err = networkSettings(&conf.Network)
}

// setup additional templates
if err == nil {
if cmd.Flags().Changed(flagTemplate) {
Expand Down
Loading