Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed Jun 18, 2024
1 parent bcde3c3 commit 9e2b9e3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/control/bat_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class BatConsiderationMode(Enum):

@dataclass
class Config:
configured: bool = field(default=False, metadata={"topic": "config/configured", "mutable_by_algorithm": True})
configured: bool = field(default=False, metadata={"topic": "config/configured"})


def config_factory() -> Config:
Expand All @@ -46,14 +46,14 @@ def config_factory() -> Config:

@dataclass
class Get:
soc: float = field(default=0, metadata={"topic": "get/soc", "mutable_by_algorithm": True})
daily_exported: float = field(default=0, metadata={"topic": "get/daily_exported", "mutable_by_algorithm": True})
daily_imported: float = field(default=0, metadata={"topic": "get/daily_imported", "mutable_by_algorithm": True})
fault_str: str = field(default=NO_ERROR, metadata={"topic": "get/fault_str", "mutable_by_algorithm": True})
fault_state: int = field(default=0, metadata={"topic": "get/fault_state", "mutable_by_algorithm": True})
imported: float = field(default=0, metadata={"topic": "get/imported", "mutable_by_algorithm": True})
exported: float = field(default=0, metadata={"topic": "get/exported", "mutable_by_algorithm": True})
power: float = field(default=0, metadata={"topic": "get/power", "mutable_by_algorithm": True})
soc: float = field(default=0, metadata={"topic": "get/soc"})
daily_exported: float = field(default=0, metadata={"topic": "get/daily_exported"})
daily_imported: float = field(default=0, metadata={"topic": "get/daily_imported"})
fault_str: str = field(default=NO_ERROR, metadata={"topic": "get/fault_str"})
fault_state: int = field(default=0, metadata={"topic": "get/fault_state"})
imported: float = field(default=0, metadata={"topic": "get/imported"})
exported: float = field(default=0, metadata={"topic": "get/exported"})
power: float = field(default=0, metadata={"topic": "get/power"})


def get_factory() -> Get:
Expand All @@ -63,8 +63,8 @@ def get_factory() -> Get:
@dataclass
class Set:
charging_power_left: float = field(
default=0, metadata={"topic": "set/charging_power_left", "mutable_by_algorithm": True})
regulate_up: bool = field(default=False, metadata={"topic": "set/regulate_up", "mutable_by_algorithm": True})
default=0, metadata={"topic": "set/charging_power_left"})
regulate_up: bool = field(default=False, metadata={"topic": "set/regulate_up"})


def set_factory() -> Set:
Expand Down

0 comments on commit 9e2b9e3

Please sign in to comment.