Skip to content

Commit 97e338c

Browse files
epenetjoostlek
authored andcommitted
Move URL out of sfr_box strings.json (home-assistant#154364)
Co-authored-by: Joost Lekkerkerker <[email protected]>
1 parent 101679c commit 97e338c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

homeassistant/components/sfr_box/config_flow.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ async def async_step_user(
6161

6262
data_schema = self.add_suggested_values_to_schema(DATA_SCHEMA, user_input)
6363
return self.async_show_form(
64-
step_id="user", data_schema=data_schema, errors=errors
64+
step_id="user",
65+
data_schema=data_schema,
66+
errors=errors,
67+
description_placeholders={
68+
"sample_ip": "192.168.1.1",
69+
"sample_url": "https://sfrbox.example.com",
70+
},
6571
)
6672

6773
async def async_step_choose_auth(

homeassistant/components/sfr_box/strings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"host": "[%key:common::config_flow::data::host%]"
2828
},
2929
"data_description": {
30-
"host": "The hostname, IP address, or full URL of your SFR device. e.g.: '192.168.1.1' or 'https://sfrbox.example.com'"
30+
"host": "The hostname, IP address, or full URL of your SFR device. e.g.: `{sample_ip}` or `{sample_url}`"
3131
},
3232
"description": "Setting the credentials is optional, but enables additional functionality."
3333
}

0 commit comments

Comments
 (0)