We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92a8531 commit 40b6547Copy full SHA for 40b6547
2 files changed
packages/modules/devices/good_we/good_we/bat.py
@@ -14,6 +14,7 @@
14
15
16
class KwargsDict(TypedDict):
17
+ device_id: int
18
modbus_id: int
19
version: GoodWeVersion
20
firmware: int
packages/modules/devices/good_we/good_we/config.py
@@ -32,8 +32,8 @@ def __init__(self,
32
33
34
class GoodWeBatConfiguration:
35
- def __init__(self):
36
- pass
+ def __init__(self, battery_index: int = 1):
+ self.battery_index = battery_index
37
38
39
class GoodWeBatSetup(ComponentSetup[GoodWeBatConfiguration]):
0 commit comments