Skip to content

Commit

Permalink
Tasmota: use phases for 3p only (#11366)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 31, 2023
1 parent 0130e39 commit bc0b52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meter/tasmota.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit bc0b52d

Please sign in to comment.