Skip to content

Commit 7acbbee

Browse files
Remove auto complete on name fields (#4150)
1 parent f47c3a5 commit 7acbbee

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

custom_components/battery_notes/config_flow.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@
9999
{
100100
vol.Required(CONF_DEVICE_ID): selector.DeviceSelector(),
101101
vol.Optional(CONF_NAME): selector.TextSelector(
102-
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),
102+
selector.TextSelectorConfig(
103+
type=selector.TextSelectorType.TEXT, autocomplete="off"
104+
),
103105
),
104106
}
105107
)
@@ -121,7 +123,9 @@
121123
)
122124
),
123125
vol.Optional(CONF_NAME): selector.TextSelector(
124-
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),
126+
selector.TextSelectorConfig(
127+
type=selector.TextSelectorType.TEXT, autocomplete="off"
128+
),
125129
),
126130
}
127131
)
@@ -130,7 +134,9 @@
130134
{
131135
vol.Required(CONF_SOURCE_ENTITY_ID): selector.EntitySelector(),
132136
vol.Optional(CONF_NAME): selector.TextSelector(
133-
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),
137+
selector.TextSelectorConfig(
138+
type=selector.TextSelectorType.TEXT, autocomplete="off"
139+
),
134140
),
135141
}
136142
)
@@ -144,7 +150,9 @@
144150
)
145151
),
146152
vol.Optional(CONF_NAME): selector.TextSelector(
147-
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),
153+
selector.TextSelectorConfig(
154+
type=selector.TextSelectorType.TEXT, autocomplete="off"
155+
),
148156
),
149157
}
150158
)
@@ -954,7 +962,9 @@ async def async_step_reconfigure(
954962
data_schema = vol.Schema(
955963
{
956964
vol.Optional(CONF_NAME): selector.TextSelector(
957-
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),
965+
selector.TextSelectorConfig(
966+
type=selector.TextSelectorType.TEXT, autocomplete="off"
967+
),
958968
),
959969
vol.Required(CONF_BATTERY_TYPE): selector.TextSelector(
960970
selector.TextSelectorConfig(type=selector.TextSelectorType.TEXT),

0 commit comments

Comments
 (0)