Skip to content

Commit

Permalink
refactor(config,hass): ♻️ remove embedded version
Browse files Browse the repository at this point in the history
remove the embedded version for now
  • Loading branch information
joshuar committed Jan 24, 2024
1 parent 7387f7b commit 43714f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"conventionalCommits.scopes": [
"web"
"web",
"tools"
],
"go.lintTool": "golangci-lint",
"go.lintFlags": [
Expand Down
6 changes: 0 additions & 6 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,9 @@
package config

import (
_ "embed"

tomlConfig "github.com/joshuar/go-hass-anything/pkg/config/toml"
)

//go:generate sh -c "printf %s $(git tag | tail -1) > VERSION"
//go:embed VERSION
var AppVersion string

//go:generate moq -out mock_configAppConfig_test.go . AppConfig
type AppConfig interface {
// IsRegistered will retrieve the registration status of the app from its config.
Expand Down
6 changes: 2 additions & 4 deletions pkg/hass/entities.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (

MQTT "github.com/eclipse/paho.mqtt.golang"
"github.com/iancoleman/strcase"
"github.com/joshuar/go-hass-anything/pkg/config"
"github.com/joshuar/go-hass-anything/pkg/mqtt"
"golang.org/x/text/cases"
"golang.org/x/text/language"
Expand Down Expand Up @@ -220,9 +219,8 @@ func (e *EntityConfig) WithOriginInfo(o *Origin) *EntityConfig {
// to the entity config.
func (e *EntityConfig) WithDefaultOriginInfo() *EntityConfig {
e.Entity.Origin = &Origin{
Name: "Go Hass Agent",
URL: "https://github.com/joshuar/go-hass-agent",
Version: config.AppVersion,
Name: "Go Hass Anything",
URL: "https://github.com/joshuar/go-hass-anything",
}
return e
}
Expand Down

0 comments on commit 43714f1

Please sign in to comment.