Tasmota: use phases for 3p only (#11366)
This commit is contained in:
parent
0130e39605
commit
bc0b52d776
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ func NewTasmota(uri, user, password, usage string, channels []int, cache time.Du
|
|||
}
|
||||
|
||||
var currents, voltages func() (float64, float64, float64, error)
|
||||
if usage != "grid" {
|
||||
if usage != "grid" && len(channels) == 3 {
|
||||
currents = c.currents
|
||||
voltages = c.voltages
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue