393 files
This commit is contained in:
@@ -92,6 +92,10 @@ class DeviceInfo(TypedDict):
|
||||
# device type (#396/#393), so the device-list conflict/suggestion badges can score
|
||||
# an unset field against the value the integration would use (matches the Settings tab).
|
||||
option_defaults: dict[str, Any]
|
||||
# Set by ws_get_devices whenever a manager is loaded: the #445 cause-1
|
||||
# advisory, or None when there is no pattern (or the probe failed). Declared
|
||||
# because the panel reads it; the handler always assigns one or the other.
|
||||
standby_above_stop: dict[str, Any] | None
|
||||
|
||||
|
||||
class GetDevicesResponse(TypedDict):
|
||||
@@ -304,6 +308,10 @@ class GetCyclePowerDataResponse(TypedDict, total=False):
|
||||
labelable: bool
|
||||
editable: bool
|
||||
cycle_origin: str
|
||||
# Spread from `**meta` when the cycle has a matched profile and
|
||||
# `expected_curve_for_cycle` succeeds, so it is optional rather than absent:
|
||||
# the panel draws the expected curve from it.
|
||||
expected: list[list[float]] | None
|
||||
|
||||
|
||||
class AnalyzeSplitResponse(TypedDict):
|
||||
@@ -952,7 +960,7 @@ WS_COMMANDS: dict[str, dict] = {
|
||||
"get_phase_catalog": {"params": [_entry(), _p("device_type", "str|null", False)]},
|
||||
"create_phase": {"params": [
|
||||
_entry(),
|
||||
_p("device_type", "str"),
|
||||
_p("device_type", "str", False),
|
||||
_p("name", "str"),
|
||||
_p("description", "str", False),
|
||||
]},
|
||||
|
||||
Reference in New Issue
Block a user