RCT: improve logging (#26033)
This commit is contained in:
parent
38e86fe73d
commit
f00b5a0c4b
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ func NewRCT(ctx context.Context, uri, usage string, batterySocLimits batterySocL
|
|||
|
||||
// see https://github.com/weltenwort/home-assistant-rct-power-integration/issues/264#issuecomment-2124811644
|
||||
if batStatus != 0 {
|
||||
return errors.New("invalid battery operating mode")
|
||||
return fmt.Errorf("invalid battery operating mode: %d", batStatus)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue