Skip to content

Commit 8002668

Browse files
committed
Add more comments to const.py
1 parent 1b76f15 commit 8002668

File tree

1 file changed

+8
-2
lines changed
  • custom_components/solvis_control

1 file changed

+8
-2
lines changed

custom_components/solvis_control/const.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ class ModbusFieldConfig:
2323
device_class: str
2424
state_class: str
2525
multiplier: float = 0.1
26-
# 1 = INPUT, 2 = HOLDING
26+
absolute_value: bool = False
2727

2828
register: int = 1
29+
# 1 = INPUT, 2 = HOLDING
2930
entity_category: str = None
31+
# Option to disable entitiy by default
3032
enabled_by_default: bool = True
33+
# Allows entities to be set to editable
3134
edit: bool = False
35+
# Assigns a range for number entities input_type = 2
3236
range_data: tuple = None
37+
# Assigns possible potions for select entities input_type = 1
3338
options: tuple = None
34-
absolute_value: bool = False
39+
3540
# Assign CONF_OPTION to entities
3641
conf_option: int = 0
42+
3743
# Configuration for which state class a register belongs to
3844
# Possibilites:
3945
# sensor (0), select (1), number (2), switch (3)

0 commit comments

Comments
 (0)