Skip to content

Commit

Permalink
remove references to CONF_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
mampfes committed Sep 16, 2023
1 parent a76aafe commit 0692fc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions custom_components/bayernluefter/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from homeassistant import config_entries
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
CONF_MAC,
)
from homeassistant.helpers import aiohttp_client
Expand Down Expand Up @@ -63,7 +62,7 @@ async def async_step_user(self, user_input=None):
# user_input[CONF_MODEL] = avr.protocol.model
await self.async_set_unique_id(user_input[CONF_MAC])
self._abort_if_unique_id_configured()
return self.async_create_entry(title=user_input[CONF_NAME], data=user_input)
return self.async_create_entry(title=user_input[CONF_HOST], data=user_input)

return self.async_show_form(
step_id="user", data_schema=STEP_USER_DATA_SCHEMA, errors=errors
Expand Down
6 changes: 2 additions & 4 deletions custom_components/bayernluefter/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"step": {
"user": {
"data": {
"host": "Host",
"name": "Name"
"host": "Host"
},
"data_description": {
"host": "IP address or host name.",
"name": "Device name."
"host": "IP address or host name."
}
}
}
Expand Down

0 comments on commit 0692fc1

Please sign in to comment.