Skip to content

Commit 5d16db9

Browse files
authored
Merge pull request openWB#2351 from ndrsnhs/fix-shelly-inverter
fix kwargs
2 parents 0629a8c + 50aac50 commit 5d16db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/modules/devices/shelly/shelly/inverter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class KwargsDict(TypedDict):
1717
device_id: int
18-
address: str
18+
ip_address: str
1919
factor: int
2020
generation: Optional[int]
2121

@@ -27,7 +27,7 @@ def __init__(self, component_config: ShellyInverterSetup, **kwargs: Any) -> None
2727

2828
def initialize(self) -> None:
2929
self.__device_id: int = self.kwargs['device_id']
30-
self.address: str = self.kwargs['address']
30+
self.address: str = self.kwargs['ip_address']
3131
self.factor: int = self.kwargs['factor']
3232
self.generation: Optional[int] = self.kwargs['generation']
3333
self.sim_counter = SimCounter(self.__device_id, self.component_config.id, prefix="pv")

0 commit comments

Comments
 (0)