fix dc switch, added some switches for eb3a
This commit is contained in:
1 parent
7596f8cee1
commit
babdd1755e
4 files changed
+11
-8
No files matched your search
@@ -18,7 +18,6 @@ class FieldType(Enum):
|
||||
NUMERIC = auto()
|
||||
BOOL = auto()
|
||||
ENUM = auto()
|
||||
BUTTON = auto()
|
||||
|
||||
|
||||
class FieldAttributes:
|
||||
@@ -220,7 +219,7 @@ FIELD_ATTRIBUTES: dict[str, FieldAttributes] = {
|
||||
"total_grid_feed": EnergyFieldAttributes("Total Grid Feed"),
|
||||
# Device specific controls
|
||||
"power_off": FieldAttributes(
|
||||
type=FieldType.BUTTON,
|
||||
type=FieldType.BOOL,
|
||||
setter=True,
|
||||
name="Power Off",
|
||||
),
|
||||
@@ -294,7 +293,7 @@ FIELD_ATTRIBUTES: dict[str, FieldAttributes] = {
|
||||
),
|
||||
"power_lifting_on": FieldAttributes(
|
||||
type=FieldType.BOOL,
|
||||
setter=False, # Disabled for safety reasons
|
||||
setter=True,
|
||||
name="Power Lifting",
|
||||
),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user