Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
LKuemmel committed May 24, 2024
1 parent 1b84791 commit 6826b9e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions packages/control/chargepoint/chargepoint_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

@dataclass
class AllGet:
daily_imported: float = field(default=0, metadata={"topic": "get/daily_imported", "mutable_by_algorithm": True})
daily_exported: float = field(default=0, metadata={"topic": "get/daily_exported", "mutable_by_algorithm": True})
power: float = field(default=0, metadata={"topic": "get/power", "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})
daily_imported: float = field(default=0, metadata={"topic": "get/daily_imported"})
daily_exported: float = field(default=0, metadata={"topic": "get/daily_exported"})
power: float = field(default=0, metadata={"topic": "get/power"})
imported: float = field(default=0, metadata={"topic": "get/imported"})
exported: float = field(default=0, metadata={"topic": "get/exported"})


def all_get_factory() -> AllGet:
Expand Down
28 changes: 14 additions & 14 deletions packages/control/chargepoint/control_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,48 @@
class ControlParameter:
chargemode: Chargemode_enum = field(
default=Chargemode_enum.STOP,
metadata={"topic": "control_parameter/chargemode", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/chargemode"})
current_plan: Optional[str] = field(
default=None,
metadata={"topic": "control_parameter/current_plan", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/current_plan"})
failed_phase_switches: int = field(
default=0,
metadata={"topic": "control_parameter/failed_phase_switches", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/failed_phase_switches"})
imported_at_plan_start: Optional[float] = field(
default=None,
metadata={"topic": "control_parameter/imported_at_plan_start", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/imported_at_plan_start"})
imported_instant_charging: Optional[float] = field(
default=None,
metadata={"topic": "control_parameter/imported_instant_charging", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/imported_instant_charging"})
limit: Optional[LimitingValue] = field(
default=None,
metadata={"topic": "control_parameter/limit", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/limit"})
phases: int = field(
default=0,
metadata={"topic": "control_parameter/phases", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/phases"})
prio: bool = field(
default=False,
metadata={"topic": "control_parameter/prio", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/prio"})
required_current: float = field(
default=0,
metadata={"topic": "control_parameter/required_current", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/required_current"})
required_currents: List[float] = field(
default_factory=currents_list_factory)
state: ChargepointState = field(
default=ChargepointState.NO_CHARGING_ALLOWED,
metadata={"topic": "control_parameter/state", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/state"})
submode: Chargemode_enum = field(
default=Chargemode_enum.STOP,
metadata={"topic": "control_parameter/submode", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/submode"})
timestamp_auto_phase_switch: Optional[float] = field(
default=None,
metadata={"topic": "control_parameter/timestamp_auto_phase_switch", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/timestamp_auto_phase_switch"})
timestamp_perform_phase_switch: Optional[float] = field(
default=None,
metadata={"topic": "control_parameter/timestamp_perform_phase_switch", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/timestamp_perform_phase_switch"})
timestamp_switch_on_off: Optional[float] = field(
default=None,
metadata={"topic": "control_parameter/timestamp_switch_on_off", "mutable_by_algorithm": True})
metadata={"topic": "control_parameter/timestamp_switch_on_off"})


def control_parameter_factory() -> ControlParameter:
Expand Down

0 comments on commit 6826b9e

Please sign in to comment.