chore: deprecate
This commit is contained in:
parent
bd9769c152
commit
d22d55db83
3 changed files with 6 additions and 6 deletions
|
|
@ -30,7 +30,7 @@ func NewHomeAssistantFromConfig(other map[string]any) (api.Charger, error) {
|
|||
var cc struct {
|
||||
URI string
|
||||
Token_ string `mapstructure:"token"` // TODO deprecated
|
||||
Home string // TODO deprecated
|
||||
Home_ string `mapstructure:"home"` // TODO deprecated
|
||||
Status string // required - sensor for charge status
|
||||
Enabled string // required - sensor for enabled state
|
||||
Enable string // required - switch/input_boolean for enable/disable
|
||||
|
|
@ -60,7 +60,7 @@ func NewHomeAssistantFromConfig(other map[string]any) (api.Charger, error) {
|
|||
|
||||
log := util.NewLogger("ha-charger")
|
||||
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home)
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home_)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ func NewHomeAssistantFromConfig(other map[string]any) (api.Meter, error) {
|
|||
cc := struct {
|
||||
URI string
|
||||
Token_ string `mapstructure:"token"` // TODO deprecated
|
||||
Home string // TODO deprecated
|
||||
Home_ string `mapstructure:"home"` // TODO deprecated
|
||||
Power string
|
||||
Energy string
|
||||
Currents []string
|
||||
|
|
@ -50,7 +50,7 @@ func NewHomeAssistantFromConfig(other map[string]any) (api.Meter, error) {
|
|||
|
||||
log := util.NewLogger("ha-meter")
|
||||
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home)
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home_)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ func NewHomeAssistantVehicleFromConfig(other map[string]any) (api.Vehicle, error
|
|||
embed `mapstructure:",squash"`
|
||||
URI string
|
||||
Token_ string `mapstructure:"token"` // TODO deprecated
|
||||
Home string // TODO deprecated
|
||||
Home_ string `mapstructure:"home"` // TODO deprecated
|
||||
Sensors struct {
|
||||
Soc string // required
|
||||
Range string // optional
|
||||
|
|
@ -55,7 +55,7 @@ func NewHomeAssistantVehicleFromConfig(other map[string]any) (api.Vehicle, error
|
|||
|
||||
log := util.NewLogger("ha-vehicle")
|
||||
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home)
|
||||
conn, err := homeassistant.NewConnection(log, cc.URI, cc.Home_)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue