File tree Expand file tree Collapse file tree
packages/modules/devices/shelly/shelly Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def update(self) -> None:
6464 currents = [status ['pm1:0' ]['current' ], 0 , 0 ]
6565 else :
6666 power = status ['em:0' ]['total_act_power' ] # shelly Pro3EM
67- currents = [meter [f'{ i } _current' ] for i in 'abc' ]
67+ currents = [status [ 'em:0' ] [f'{ i } _current' ] for i in 'abc' ]
6868
6969 power = power * self .factor
7070 imported , exported = self .sim_counter .sim_count (power )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ def update(self) -> None:
6262 currents = [status ['pm1:0' ]['current' ], 0 , 0 ]
6363 else :
6464 power = status ['em:0' ]['total_act_power' ] # shelly Pro3EM
65- currents = [meter [f'{ i } _current' ] for i in 'abc' ]
65+ currents = [status [ 'em:0' ] [f'{ i } _current' ] for i in 'abc' ]
6666
6767 power = power * self .factor
6868 _ , exported = self .sim_counter .sim_count (power )
You can’t perform that action at this time.
0 commit comments