chore: minor
This commit is contained in:
parent
1ee48a559b
commit
6befca050b
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ func NewHomeAssistantSwitchFromConfig(other map[string]interface{}) (api.Charger
|
|||
|
||||
func NewHomeAssistantSwitch(embed embed, uri, token, enable, power string, standbypower float64) (api.Charger, error) {
|
||||
if enable == "" {
|
||||
return nil, errors.New("missing switch entity")
|
||||
return nil, errors.New("missing enable switch entity")
|
||||
}
|
||||
|
||||
// standbypower < 0 ensures that currentPower is never used by the switch socket if not present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue