Skip to content

Commit af10b7b

Browse files
Bill DitterBill Ditter
authored andcommitted
Add runtime Home Assistant translations
1 parent 18a36c2 commit af10b7b

5 files changed

Lines changed: 193 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.0.3 - 2026-06-25
4+
5+
- Add runtime `translations/en.json` so Home Assistant displays setup and options flow labels for custom installations.
6+
37
## v1.0.2 - 2026-06-25
48

59
- Fix config-flow loading by removing a bad `ServiceResponse` import from `homeassistant.const`.

custom_components/bermuda_tuner/const.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
DOMAIN = "bermuda_tuner"
44
BERMUDA_DOMAIN = "bermuda"
5-
VERSION = "1.0.2"
5+
VERSION = "1.0.3"
66

77
CONF_CONVERSATION_AGENT = "conversation_agent"
88
CONF_AI_ENABLED = "ai_enabled"

custom_components/bermuda_tuner/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "local_push",
1111
"issue_tracker": "https://github.com/ComputerWhisperers/bermuda_tuner/issues",
1212
"requirements": [],
13-
"version": "1.0.2"
13+
"version": "1.0.3"
1414
}

custom_components/bermuda_tuner/strings.json

Lines changed: 78 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,84 @@
1818
},
1919
"options": {
2020
"step": {
21-
"init": {"title": "Bermuda tuning wizard", "menu_options": {"audit": "Setup audit", "one_meter": "One-metre calibration", "distance": "Distance calibration", "balance": "Scanner balancing", "walk_test": "Walk test", "explain": "Explain settings", "apply": "Preview and apply", "rollback": "Roll back", "ai": "AI options"}},
22-
"result": {"title": "{title}", "description": "{result}"},
23-
"audit": {"title": "Setup audit"},
24-
"one_meter": {"title": "One-metre calibration", "description": "Place the beacon exactly one metre from the scanner and keep both still.", "data": {"device_address": "Bermuda device address", "scanner": "Scanner name or label"}},
25-
"distance": {"title": "Distance calibration", "description": "Move the same beacon to a measured distance beyond one metre; 4-6 m is recommended.", "data": {"device_address": "Bermuda device address", "scanner": "Scanner name or label", "measured_distance": "Measured distance (m)", "reference_power": "Reference power from the one-metre test"}},
26-
"balance": {"title": "Scanner balancing", "description": "Keep one beacon stationary where several scanners can hear it.", "data": {"device_address": "Bermuda device address"}},
27-
"walk_test": {"title": "Walk test", "description": "Walk to a test point, pause, then submit to compare the strongest scanners.", "data": {"device_address": "Bermuda device address", "ambiguity_db": "Ambiguity threshold (dB)"}},
28-
"explain": {"title": "Plain-English settings"},
29-
"apply": {"title": "Preview settings", "description": "Enter only documented Bermuda tuning keys. Nothing changes until the next confirmation screen.", "data": {"settings": "Settings"}},
30-
"confirm_apply": {"title": "Confirm settings", "description": "Review these changes. A rollback snapshot will be saved before applying: {result}", "data": {"confirm": "Apply these changes"}},
31-
"rollback": {"title": "Roll back Bermuda settings", "description": "Restore the latest snapshot saved by Bermuda Tuner.", "data": {"confirm": "Restore the snapshot"}},
21+
"init": {
22+
"title": "Bermuda tuning wizard",
23+
"menu_options": {
24+
"audit": "Setup audit",
25+
"one_meter": "One-metre calibration",
26+
"distance": "Distance calibration",
27+
"balance": "Scanner balancing",
28+
"walk_test": "Walk test",
29+
"explain": "Explain settings",
30+
"apply": "Preview and apply",
31+
"rollback": "Roll back",
32+
"ai": "AI options"
33+
}
34+
},
35+
"result": {
36+
"title": "{title}",
37+
"description": "{result}"
38+
},
39+
"audit": {
40+
"title": "Setup audit"
41+
},
42+
"one_meter": {
43+
"title": "One-metre calibration",
44+
"description": "Place the beacon exactly one metre from the scanner and keep both still.",
45+
"data": {
46+
"device_address": "Bermuda device address",
47+
"scanner": "Scanner name or label"
48+
}
49+
},
50+
"distance": {
51+
"title": "Distance calibration",
52+
"description": "Move the same beacon to a measured distance beyond one metre; 4-6 m is recommended.",
53+
"data": {
54+
"device_address": "Bermuda device address",
55+
"scanner": "Scanner name or label",
56+
"measured_distance": "Measured distance (m)",
57+
"reference_power": "Reference power from the one-metre test"
58+
}
59+
},
60+
"balance": {
61+
"title": "Scanner balancing",
62+
"description": "Keep one beacon stationary where several scanners can hear it.",
63+
"data": {
64+
"device_address": "Bermuda device address"
65+
}
66+
},
67+
"walk_test": {
68+
"title": "Walk test",
69+
"description": "Walk to a test point, pause, then submit to compare the strongest scanners.",
70+
"data": {
71+
"device_address": "Bermuda device address",
72+
"ambiguity_db": "Ambiguity threshold (dB)"
73+
}
74+
},
75+
"explain": {
76+
"title": "Plain-English settings"
77+
},
78+
"apply": {
79+
"title": "Preview settings",
80+
"description": "Enter only documented Bermuda tuning keys. Nothing changes until the next confirmation screen.",
81+
"data": {
82+
"settings": "Settings"
83+
}
84+
},
85+
"confirm_apply": {
86+
"title": "Confirm settings",
87+
"description": "Review these changes. A rollback snapshot will be saved before applying: {result}",
88+
"data": {
89+
"confirm": "Apply these changes"
90+
}
91+
},
92+
"rollback": {
93+
"title": "Roll back Bermuda settings",
94+
"description": "Restore the latest snapshot saved by Bermuda Tuner.",
95+
"data": {
96+
"confirm": "Restore the snapshot"
97+
}
98+
},
3299
"ai": {
33100
"title": "AI explanations",
34101
"description": "Calculations always remain deterministic. When enabled, Ask AI sends only a redacted audit to the selected Home Assistant conversation agent. The tuner stores no AI transcript, but the provider's own privacy policy still applies.",
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"title": "Bermuda Tuner",
3+
"config": {
4+
"step": {
5+
"user": {
6+
"title": "Set up Bermuda Tuner",
7+
"description": "Bermuda Tuner runs deterministic audits and calibration calculations locally. AI is optional and receives only a redacted report through your selected Home Assistant conversation agent.",
8+
"data": {
9+
"ai_enabled": "Enable optional AI explanations",
10+
"conversation_agent": "Conversation agent"
11+
}
12+
}
13+
},
14+
"abort": {
15+
"already_configured": "Bermuda Tuner is already configured.",
16+
"bermuda_required": "Install and configure Bermuda before adding Bermuda Tuner."
17+
}
18+
},
19+
"options": {
20+
"step": {
21+
"init": {
22+
"title": "Bermuda tuning wizard",
23+
"menu_options": {
24+
"audit": "Setup audit",
25+
"one_meter": "One-metre calibration",
26+
"distance": "Distance calibration",
27+
"balance": "Scanner balancing",
28+
"walk_test": "Walk test",
29+
"explain": "Explain settings",
30+
"apply": "Preview and apply",
31+
"rollback": "Roll back",
32+
"ai": "AI options"
33+
}
34+
},
35+
"result": {
36+
"title": "{title}",
37+
"description": "{result}"
38+
},
39+
"audit": {
40+
"title": "Setup audit"
41+
},
42+
"one_meter": {
43+
"title": "One-metre calibration",
44+
"description": "Place the beacon exactly one metre from the scanner and keep both still.",
45+
"data": {
46+
"device_address": "Bermuda device address",
47+
"scanner": "Scanner name or label"
48+
}
49+
},
50+
"distance": {
51+
"title": "Distance calibration",
52+
"description": "Move the same beacon to a measured distance beyond one metre; 4-6 m is recommended.",
53+
"data": {
54+
"device_address": "Bermuda device address",
55+
"scanner": "Scanner name or label",
56+
"measured_distance": "Measured distance (m)",
57+
"reference_power": "Reference power from the one-metre test"
58+
}
59+
},
60+
"balance": {
61+
"title": "Scanner balancing",
62+
"description": "Keep one beacon stationary where several scanners can hear it.",
63+
"data": {
64+
"device_address": "Bermuda device address"
65+
}
66+
},
67+
"walk_test": {
68+
"title": "Walk test",
69+
"description": "Walk to a test point, pause, then submit to compare the strongest scanners.",
70+
"data": {
71+
"device_address": "Bermuda device address",
72+
"ambiguity_db": "Ambiguity threshold (dB)"
73+
}
74+
},
75+
"explain": {
76+
"title": "Plain-English settings"
77+
},
78+
"apply": {
79+
"title": "Preview settings",
80+
"description": "Enter only documented Bermuda tuning keys. Nothing changes until the next confirmation screen.",
81+
"data": {
82+
"settings": "Settings"
83+
}
84+
},
85+
"confirm_apply": {
86+
"title": "Confirm settings",
87+
"description": "Review these changes. A rollback snapshot will be saved before applying: {result}",
88+
"data": {
89+
"confirm": "Apply these changes"
90+
}
91+
},
92+
"rollback": {
93+
"title": "Roll back Bermuda settings",
94+
"description": "Restore the latest snapshot saved by Bermuda Tuner.",
95+
"data": {
96+
"confirm": "Restore the snapshot"
97+
}
98+
},
99+
"ai": {
100+
"title": "AI explanations",
101+
"description": "Calculations always remain deterministic. When enabled, Ask AI sends only a redacted audit to the selected Home Assistant conversation agent. The tuner stores no AI transcript, but the provider's own privacy policy still applies.",
102+
"data": {
103+
"ai_enabled": "Enable AI explanations",
104+
"conversation_agent": "Conversation agent"
105+
}
106+
}
107+
}
108+
}
109+
}

0 commit comments

Comments
 (0)