mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-10-09 06:56:37 +00:00
fix(monitor): round the temperature in alerts and tidy the #408 follow-ups
This commit is contained in:
@@ -122,10 +122,9 @@ class CommandDescriptionsTests(unittest.TestCase):
|
||||
"temperatureIncomplete", "temperatureUnavailableCount",
|
||||
):
|
||||
temporary["storage"].setdefault(key, catalog("en")["storage"][key])
|
||||
# The temperature alert fallback is new English-only runtime
|
||||
# text until locale migration. Seed only its four new keys
|
||||
# in this disposable steady-state catalog; shipped locales
|
||||
# remain unchanged and runtime fallback is tested separately.
|
||||
# Every shipped locale carries the temperature alert fallback
|
||||
# keys; the seed only guards a catalog that lacks them. The
|
||||
# runtime fallback is tested separately.
|
||||
source_fallback = catalog("en")["runtime"]["notifications"]["fallback"]
|
||||
fallback = temporary["runtime"]["notifications"]["fallback"]
|
||||
for key in ("temperatureAlertTitle", "temperatureAlertBody",
|
||||
|
||||
Reference in New Issue
Block a user