Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
ceca992
Refresh the plugin catalogs from the cloud with the stored login
virtitnerd Nov 12, 2026
427ce52
Keep each robot's last-known state in a persistent store
virtitnerd Oct 22, 2026
22db56c
Add admin endpoints to refresh and list the plugin catalogs
virtitnerd Nov 12, 2026
64d0c60
Feed the snapshot store from the MQTT proxy
virtitnerd Oct 22, 2026
070e2c3
Serve a robot's last-known state at /user/devices/{duid}/last_known
virtitnerd Oct 22, 2026
2897f61
Seed the snapshot store from the MQTT log on startup
virtitnerd Oct 23, 2026
f0f62e5
Keep each robot's room table in its snapshot and serve room names wit…
virtitnerd Oct 27, 2026
539fd05
Document the last-known robot state
virtitnerd Nov 13, 2026
c66fec4
Keep the last-known state from get_prop get_status answers too
virtitnerd Nov 13, 2026
447c106
Keep stored plugin catalogs on partial failure and write the snapshot…
virtitnerd Nov 22, 2026
6b97054
Give each plugin refresh failure its own message
virtitnerd Nov 22, 2026
99a5653
Parse the map request security block as JSON and keep stale robots of…
virtitnerd Nov 22, 2026
d61fcea
Count only the robot's own device-topic publishes and mark offline in…
virtitnerd Nov 22, 2026
4609149
Flush the snapshot store on shutdown and fix the data directory name …
virtitnerd Nov 22, 2026
d44520d
Merge pr/plugin-catalog-refresh into firmware-install base
virtitnerd Nov 22, 2026
4835de8
Merge pr/last-known-state into firmware-install base
virtitnerd Nov 22, 2026
9fe9d15
Read a robot's firmware update from the cloud with the stored login
virtitnerd Nov 12, 2026
9a1f4c3
Answer the app's firmware calls from the cloud, and require its signa…
virtitnerd Nov 12, 2026
87d2fd4
List firmware status for every robot on the account
virtitnerd Nov 12, 2026
607c4cf
Install firmware from the official app's Update button
virtitnerd Nov 13, 2026
dcab9f1
Show the firmware version a robot reports itself
virtitnerd Nov 13, 2026
385bc58
Document firmware updates and the [ota] setting
virtitnerd Nov 13, 2026
80dc204
Gate firmware packages on the version the robot reports
virtitnerd Nov 15, 2026
ed10f1a
Keep a catalog of every firmware package the server learns of
virtitnerd Nov 15, 2026
6ce2349
Install an older or other catalog version when opted in
virtitnerd Nov 15, 2026
1946841
Document the firmware catalog and installing another version
virtitnerd Nov 15, 2026
88a1a84
Fetch the firmware package in the background after the install reques…
virtitnerd Nov 16, 2026
db8c6c3
Let the admin add cloud-confirmed firmware versions to the catalog
virtitnerd Nov 16, 2026
6aeb12e
Record a release date per firmware catalog entry
virtitnerd Nov 16, 2026
1ce2206
Read release date and size from the package headers when learning ver…
virtitnerd Nov 16, 2026
3ac0f19
Add a background scan that finds released firmware versions
virtitnerd Nov 16, 2026
0670586
Add admin routes and docs for the firmware version scan
virtitnerd Nov 16, 2026
81dfe7b
Harden the firmware install: one install at a time, honest success, p…
virtitnerd Nov 22, 2026
bd61164
Keep the install status across a restart and forward the path-form st…
virtitnerd Nov 22, 2026
8a42dba
Document the firmware install guards, the downgrade confirmation and …
virtitnerd Nov 22, 2026
284644e
Refuse a version install when the running version's package address i…
virtitnerd Nov 22, 2026
ff129bc
Tighten the package address allowlist and check every redirect hop
virtitnerd Nov 22, 2026
65b7e10
Use obviously fake ids in the new snapshot tests
virtitnerd Nov 22, 2026
e25964d
End an install as FAILED when something outside the watched part raises
virtitnerd Nov 22, 2026
f2753cd
Do not let an expired running install read as done, and survive a han…
virtitnerd Nov 22, 2026
56fa36c
Compare versions by their numbers so 2.35.52 and 02.35.52 agree every…
virtitnerd Nov 22, 2026
7d83912
Document the stricter package checks; use a documentation-range IP in…
virtitnerd Nov 22, 2026
ebcdc22
Merge branch 'pr/last-known-state' into pr/firmware-install
virtitnerd Nov 22, 2026
8abfcf9
Keep restored robots offline, skip mowers in the seed, make flushes safe
virtitnerd Nov 22, 2026
d473fa7
Merge branch 'pr/last-known-state' into pr/firmware-install
virtitnerd Nov 22, 2026
c61c1fa
Follow the official app's battery gate for firmware installs
virtitnerd Nov 22, 2026
6c03220
Give a missing or unreadable stored login its own refresh message
virtitnerd Nov 22, 2026
a38d78d
Show the real age of plugin catalogs kept after a failed refresh
virtitnerd Nov 22, 2026
3e36dc7
Do not store B01 robot status as V1 last-known state
virtitnerd Nov 22, 2026
d6b0cb2
Seed last-known state only from publishes on a robot's own topic
virtitnerd Nov 22, 2026
b69eee5
Refuse a firmware package whose hardware cannot be told from its address
virtitnerd Nov 22, 2026
89e7a2d
Build the robot connection inside the try so a failure unpins the pac…
virtitnerd Nov 22, 2026
9fca590
Flush the snapshot store again once the trace worker has exited
virtitnerd Nov 22, 2026
2715366
Compare firmware versions with firmware_versions.same everywhere
virtitnerd Nov 22, 2026
6879de4
Mark a robot online when it logs in with its own credentials
virtitnerd Nov 22, 2026
70cfd88
Refresh the START status once the package fetch finishes
virtitnerd Nov 22, 2026
2f08223
Merge branch 'pr/last-known-state' into pr/firmware-install
virtitnerd Nov 22, 2026
723ed04
Merge branch 'pr/plugin-catalog-refresh' into pr/firmware-install
virtitnerd Nov 22, 2026
904965a
Merge main into pr/firmware-install
Lash-L Nov 22, 2026
927fffb
Compare firmware versions in the install gate with firmware_versions.…
virtitnerd Nov 25, 2026
5e5def3
Refuse firmware install on non-V1 robots before any cloud call or dow…
virtitnerd Nov 25, 2026
b683974
Merge main into pr/firmware-install
virtitnerd Nov 30, 2026
72a92e1
fix(ota): EU package host, short-lived refusals, success by reported …
AlexanderBabel Dec 1, 2026
29e9d53
Merge AlexanderBabel/fix/ota-a226-eu into pr/firmware-install
virtitnerd Dec 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,13 @@ ttl = 86400
# When true, the robot's id, its signature and its request headers are sent to Roborock, along with this server's IP.
[matter]
key_proxy = false

# Lets the official app's Update button install firmware (docked, 80%+ battery, idle robots only).
# The package comes from Roborock's CDN, is checked against its checksum, and is served to the robot from here.
[ota]
enable_install = false
# Also lets LocalRock or the admin install another version from the firmware catalog, older ones included.
# Proven on one Qrevo Curv 2 Flow only; needs enable_install too.
allow_downgrade = false
# Keeps the package files from before and after an install (about 300 MB each) for a quick reinstall.
keep_previous_package = false
242 changes: 242 additions & 0 deletions docs/firmware_updates.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/known_limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
I have tried to copy over most functionality into this server, but some is not 100% completed. There are a few features I know are not currently working

- Vacuum camera live streaming — available; see the [model-specific results](camera.md#reported-camera-results). Bootstrap, activation and audio support vary by firmware, and some reports require custom builds.
- Firmware Updates
- Firmware updates: the app can see whether an update is available (the server asks Roborock's cloud with the login stored at sign-in, so it needs one email-code sign-in first), and the Update button can install it when `[ota] enable_install = true` (or `ROBOROCK_SERVER_OTA_ENABLE_INSTALL=true`). Off by default, the upgrade request is refused with an error. Installing an older version from the server's firmware catalog (`[ota] allow_downgrade = true`) was proven on one Qrevo Curv 2 Flow only and is untested on other models. See [Firmware updates](firmware_updates.md).
- Schedules are experimental. A scheduled start has been reported on an S7; broader hardware compatibility, DST parity, and expired one-time jobs still need validation. See [schedule support](schedules.md). Routines/Scenes are separate.
- China-market devices have model/firmware-specific region and access-renewal restrictions. Unresolved a143/a146/a96 reports reject ordinary commands with `-10002 / rrcheck access denied` after local onboarding. See [known failures](tested_vacuums.md#known-failures). Factory-firmware a184 success was reported with custom interception and compromised-intermediate certificates; it does not establish support through the standard setup or resolve those other reports.
- Some users report success with the official cloud through a China-exit VPN; see [this comment](https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/issues/842#issuecomment-1736230673). A China VPN did not resolve the G30 local-server report [#161](https://github.com/Python-roborock/local_roborock_server/issues/161), so it is not an established general workaround here.
4 changes: 4 additions & 0 deletions docs/roborock_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ The refresh reuses the login stored by the email-code sign-in and only replaces

If the cloud rejects the stored login, or the snapshot predates this feature and has none, sign in again with the email code; that stores a login the refresh can use.

## Firmware Status for Every Robot

`GET /admin/api/cloud/firmware` (signed in as admin, for example in a browser tab) asks the cloud about each robot on the account, including ones that are not paired to this server, and lists its model, the firmware the cloud last saw, and the available update. It uses the same stored login.

---

## LocalRock (Third-Party App)
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ nav:
- iOS App Onboarding Wizard: ios_mitm_onboarding.md
- Camera (Live Video): camera.md
- Matter: matter.md
- Firmware Updates: firmware_updates.md
- Reference:
- Log Retention: logging.md
- Last-Known State: last_known_state.md
Expand Down
2 changes: 2 additions & 0 deletions src/roborock_local_server/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def _resolve_backend_path() -> Path:
_fetch_cloud_home_data_with_api,
_fetch_plugin_catalogs,
_flatten_device_scenes,
_hawk_get_result,
_load_existing_inventory_for_merge,
_merge_existing_inventory_mutations,
_normalize_dict_list,
Expand Down Expand Up @@ -55,6 +56,7 @@ def _resolve_backend_path() -> Path:
"_fetch_cloud_home_data_with_api",
"_fetch_plugin_catalogs",
"_flatten_device_scenes",
"_hawk_get_result",
"_load_existing_inventory_for_merge",
"_load_inventory",
"_merge_existing_inventory_mutations",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,35 @@ def _runtime_device_for_record(
return {}


def _apply_reported_firmware(ctx: ServerContext, home_data: dict[str, Any]) -> dict[str, Any]:
"""Shows the firmware version a robot reported itself (it can differ from the cloud's record after an update)."""
store = getattr(ctx, "snapshot_store", None)
if store is None:
return home_data
enriched = dict(home_data)
for key in ("devices", "receivedDevices", "received_devices"):
devices = home_data.get(key)
if not isinstance(devices, list):
continue
updated = []
for device in devices:
if isinstance(device, dict):
reported = _reported_firmware(store, str(device.get("duid") or ""))
device = {**device, "fv": reported} if reported else device
updated.append(device)
enriched[key] = updated
return enriched


def _reported_firmware(store: Any, duid: str) -> str:
try:
entry = store.get(duid) if duid else None
except Exception: # noqa: BLE001
return ""
value = (entry or {}).get("firmware_version")
return value if isinstance(value, str) else ""


def _apply_runtime_online_status(ctx: ServerContext, home_data: dict[str, Any]) -> dict[str, Any]:
runtime_device_map, any_runtime_connected = _runtime_device_identity_map(ctx)
if not any_runtime_connected:
Expand Down Expand Up @@ -391,7 +420,7 @@ def _apply_runtime_online_status(ctx: ServerContext, home_data: dict[str, Any])
def enrich_home_data_with_cloud_snapshot(ctx: ServerContext, home_data: dict[str, Any]) -> dict[str, Any]:
cloud_home_data = _load_cloud_home_data(ctx) or {}
if not cloud_home_data:
return _apply_device_overrides(ctx, home_data)
return _apply_reported_firmware(ctx, _apply_device_overrides(ctx, home_data))

enriched_home = dict(home_data)

Expand Down Expand Up @@ -466,7 +495,7 @@ def enrich_home_data_with_cloud_snapshot(ctx: ServerContext, home_data: dict[str
if enriched_devices:
enriched_home[collection_key] = enriched_devices

return _apply_device_overrides(ctx, enriched_home)
return _apply_reported_firmware(ctx, _apply_device_overrides(ctx, enriched_home))


def _home_data(ctx: ServerContext) -> dict[str, Any]:
Expand Down Expand Up @@ -504,7 +533,7 @@ def _home_data(ctx: ServerContext) -> dict[str, Any]:

home["id"] = resolve_home_id(home, cloud_home_data, default=0)
home["name"] = str(get_value(home, "name", "home_name", default="Local Home"))
return _apply_runtime_online_status(ctx, _apply_device_overrides(ctx, home))
return _apply_reported_firmware(ctx, _apply_runtime_online_status(ctx, _apply_device_overrides(ctx, home)))


def device_detail_payload(ctx: ServerContext, device_id: str) -> dict[str, Any]:
Expand Down Expand Up @@ -612,7 +641,8 @@ def device_detail_payload(ctx: ServerContext, device_id: str) -> dict[str, Any]:
)
),
"productId": product_id,
"fv": str(get_value(raw_device, "fv", default=get_value(normalized_device, "fv", default=""))),
"fv": _reported_firmware(getattr(ctx, "snapshot_store", None), device_id)
or str(get_value(raw_device, "fv", default=get_value(normalized_device, "fv", default=""))),
"pv": str(get_value(raw_device, "pv", default=get_value(normalized_device, "pv", default=""))),
"activeTime": as_int(
get_value(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,8 @@ def _observe_snapshot(
return
if proto_value == 301:
self.snapshot_store.record_map(duid, payload_bytes)
elif proto_value == 203:
self.snapshot_store.record_firmware_version(duid, payload_utf8)
elif proto_value == 102:
response_to = decoded_entry.get("response_to")
if isinstance(response_to, dict):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ def record_dps(self, duid: str, payload_utf8: str | None) -> None:
if update and _SAFE_DUID.match(duid or ""):
self._update_status(duid, update)

def record_firmware_version(self, duid: str, payload_utf8: str | None) -> None:
"""The robot's firmware report (protocol 203), sent each time it connects: ``{"mqttOtaData": {"mqttOtaFirmwareVersion": {"version": ...}}}``."""
try:
version = json.loads(payload_utf8 or "")["mqttOtaData"]["mqttOtaFirmwareVersion"]["version"]
except (ValueError, KeyError, TypeError):
return
if isinstance(version, str) and version and _SAFE_DUID.match(duid or ""):
with self._lock:
self._entry(duid)["firmware_version"] = version
self._touch(duid, force_flush=True)

def record_status_result(self, duid: str, result: Any) -> None:
"""The answer to ``get_status``."""
update = _status_update(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,10 @@ def verify_hawk(
headers: Mapping[str, str],
raw_body: bytes | None = None,
now_ts: float | None = None,
allow_replay: bool = False,
) -> tuple[bool, str]:
"""Checks the signature and its age. A repeated nonce is refused unless [allow_replay] is set, which
is for read-only requests the app is known to resend with the same signature."""
availability = self.availability()
if not availability.users:
return False, availability.reason
Expand Down Expand Up @@ -612,6 +615,8 @@ def verify_hawk(
)
if not hmac.compare_digest(_clean_str(hawk.get("mac")), expected_mac):
return False, "invalid_hawk_mac"
if allow_replay:
return True, "ok"

nonce_key = f"{user.hawk_id}:{user.hawk_session}:{timestamp}:{nonce}"
expires_at = float(current_ts + self.hawk_nonce_ttl_seconds)
Expand Down
78 changes: 66 additions & 12 deletions src/roborock_local_server/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
_fetch_cloud_home_data_with_api,
_fetch_plugin_catalogs,
_flatten_device_scenes,
_hawk_get_result,
_load_existing_inventory_for_merge,
_merge_existing_inventory_mutations,
_normalize_dict_list,
Expand Down Expand Up @@ -205,6 +206,69 @@ def _read_snapshot(self) -> dict[str, Any]:
return {}
return parsed if isinstance(parsed, dict) else {}

def _stored_cloud_login(self) -> tuple[dict[str, Any], dict[str, Any], UserData, str]:
"""The snapshot, its meta, and the login the last sign-in stored."""
snapshot = self._read_snapshot()
meta = snapshot.get("meta") if isinstance(snapshot.get("meta"), dict) else {}
try:
user_data = UserData.from_dict(snapshot.get("user_data"))
except (TypeError, ValueError, KeyError):
user_data = None
email = str(meta.get("username") or "")
if user_data is None or not user_data.token or not email:
raise ValueError("No cloud login is stored. Request a code and sign in first.")
return snapshot, meta, user_data, email

@staticmethod
def _cloud_client(session: aiohttp.ClientSession, meta: dict[str, Any], email: str) -> RoborockApiClient:
api = RoborockApiClient(username=email, base_url=str(meta.get("base_url") or "") or None, session=session)
if meta.get("device_identifier"):
setattr(api, "_device_identifier", str(meta["device_identifier"]))
return api

async def iot_get(self, path: str, params: dict[str, Any] | None = None) -> Any:
"""A signed read of Roborock's IoT API with the stored login; returns the reply's `result`."""
_, meta, user_data, email = self._stored_cloud_login()
timeout = aiohttp.ClientTimeout(total=30)
async with aiohttp.ClientSession(timeout=timeout) as session:
api = self._cloud_client(session, meta, email)
return await _hawk_get_result(api, user_data, path, params=params)

async def firmware_update_info(self, duid: str, *, lang: str = "en") -> Any:
"""What the cloud says about a robot's firmware update, read with the stored login."""
return await self.iot_get(f"/ota/firmware/{duid}/updatev2", {"lang": lang})

def firmware_devices(self) -> list[dict[str, Any]]:
"""Every robot on the signed-in account, from the home data the sign-in stored."""
home = self._read_snapshot().get("home_data")
home = home if isinstance(home, dict) else {}
models = {
str(product.get("id")): product.get("model")
for product in home.get("products") or [] if isinstance(product, dict)
}
rows: list[dict[str, Any]] = []
for device in [*(home.get("devices") or []), *(home.get("received_devices") or [])]:
if isinstance(device, dict) and device.get("duid"):
rows.append({
"duid": device["duid"], "name": device.get("name"),
"model": models.get(str(device.get("product_id"))),
"cloud_firmware": device.get("fv"), "online": device.get("online"),
})
return rows

async def firmware_status(self, *, lang: str = "en") -> list[dict[str, Any]]:
"""Each account robot with the cloud's firmware update answer; one failure does not hide the rest."""
self._stored_cloud_login()
rows = self.firmware_devices()
if not rows:
raise ValueError("No devices are stored. Sign in with an email code to import them.")
for row in rows:
try:
row["update"] = await self.iot_get("/ota/firmware/updatev2", {"duids": row["duid"], "lang": lang})
except Exception as exc: # noqa: BLE001
row["error"] = str(exc)
return rows

def plugin_catalogs(self) -> dict[str, Any]:
"""The stored plugin catalogs, summarized, without any cloud request."""
web_cache = self._read_snapshot().get("web_api_cache")
Expand All @@ -217,21 +281,11 @@ async def refresh_plugin_catalogs(self) -> dict[str, Any]:
Only the plugin catalogs in the snapshot change; the inventory is left alone. A rejected
login needs the email-code sign-in again, which stores a fresh one.
"""
snapshot = self._read_snapshot()
meta = snapshot.get("meta") if isinstance(snapshot.get("meta"), dict) else {}
try:
user_data = UserData.from_dict(snapshot.get("user_data"))
except (TypeError, ValueError, KeyError):
user_data = None
email = str(meta.get("username") or "")
if user_data is None or not user_data.token or not email:
raise ValueError("No cloud login is stored. Request a code and sign in first.")
snapshot, meta, user_data, email = self._stored_cloud_login()

timeout = aiohttp.ClientTimeout(total=120)
async with aiohttp.ClientSession(timeout=timeout) as session:
api = RoborockApiClient(username=email, base_url=str(meta.get("base_url") or "") or None, session=session)
if meta.get("device_identifier"):
setattr(api, "_device_identifier", str(meta["device_identifier"]))
api = self._cloud_client(session, meta, email)
try:
home_data = await _fetch_cloud_home_data_with_api(api, user_data)
catalogs = await _fetch_plugin_catalogs(api, user_data, home_data)
Expand Down
28 changes: 28 additions & 0 deletions src/roborock_local_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@ class MatterConfig:
key_proxy: bool = False


@dataclass(frozen=True)
class OtaConfig:
"""Firmware installs from the official app's Update button; off until the owner opts in."""

enable_install: bool = False
# Installing a catalog version other than the cloud's offer, older ones included; proven on one model only.
allow_downgrade: bool = False
# Keeps the package files of the versions before and after an install in the cache, for a quick reinstall.
keep_previous_package: bool = False


@dataclass(frozen=True)
class AppConfig:
network: NetworkConfig
Expand All @@ -122,6 +133,7 @@ class AppConfig:
turn: TurnConfig = TurnConfig()
logging: LoggingConfig = LoggingConfig()
matter: MatterConfig = MatterConfig()
ota: OtaConfig = OtaConfig()


@dataclass(frozen=True)
Expand Down Expand Up @@ -268,6 +280,16 @@ def _matter_key_proxy_enabled(from_file: bool) -> bool:
return from_file


def _ota_install_enabled(from_file: bool) -> bool:
"""The env var wins when set, so installs can also be switched on for a config.toml that already exists."""
override = os.environ.get("ROBOROCK_SERVER_OTA_ENABLE_INSTALL", "").strip().lower()
if override in {"1", "true", "yes", "on"}:
return True
if override in {"0", "false", "no", "off"}:
return False
return from_file


def load_config(path: str | Path) -> AppConfig:
config_path = Path(path).resolve()
parsed = tomllib.loads(config_path.read_text(encoding="utf-8"))
Expand All @@ -280,6 +302,7 @@ def load_config(path: str | Path) -> AppConfig:
admin = _get_section(parsed, "admin")
turn = _get_section(parsed, "turn")
matter = _get_section(parsed, "matter")
ota = _get_section(parsed, "ota")
turn_mode = str(turn.get("mode", "external" if _as_bool(turn.get("enabled"), False) else "disabled")).strip().lower()
broker_mode = str(broker.get("mode", "embedded")).strip().lower()
if broker_mode not in {"embedded", "external"}:
Expand Down Expand Up @@ -368,6 +391,11 @@ def load_config(path: str | Path) -> AppConfig:
key_file=str(tls.get("key_file", "")).strip(),
),
matter=MatterConfig(key_proxy=_matter_key_proxy_enabled(_as_bool(matter.get("key_proxy"), False))),
ota=OtaConfig(
enable_install=_ota_install_enabled(_as_bool(ota.get("enable_install"), False)),
allow_downgrade=_as_bool(ota.get("allow_downgrade"), False),
keep_previous_package=_as_bool(ota.get("keep_previous_package"), False),
),
admin=AdminConfig(
password_hash=_require_non_empty(admin.get("password_hash"), "admin.password_hash"),
session_secret=_require_non_empty(admin.get("session_secret"), "admin.session_secret"),
Expand Down
Loading