Site: show vehicle detection warning only if no identifiers configured
This commit is contained in:
parent
bcc405217a
commit
9887fec26a
1 changed files with 1 additions and 1 deletions
|
|
@ -338,7 +338,7 @@ func (site *Site) DumpConfig() {
|
|||
// verify vehicle detection
|
||||
if vehicles := site.Vehicles().Instances(); len(vehicles) > 1 {
|
||||
for _, v := range vehicles {
|
||||
if _, ok := v.(api.ChargeState); !ok {
|
||||
if _, ok := v.(api.ChargeState); !ok && len(v.Identifiers()) == 0 {
|
||||
site.log.WARN.Printf("vehicle '%s' does not support automatic detection", v.Title())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue