Homeassistant Switch: remove trailing /
This commit is contained in:
parent
668344bf32
commit
062ceceef6
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ func NewHomeAssistantSwitchFromConfig(other map[string]interface{}) (api.Charger
|
|||
|
||||
func NewHomeAssistantSwitch(embed embed, baseURL, token, switchEntity, powerEntity string, standbypower float64) (api.Charger, error) {
|
||||
c := &HomeAssistantSwitch{
|
||||
baseURL: baseURL,
|
||||
baseURL: strings.TrimSuffix(baseURL, "/"),
|
||||
switchEntity: switchEntity,
|
||||
powerEntity: powerEntity,
|
||||
Helper: request.NewHelper(util.NewLogger("ha-switch")),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue