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 2b4b2ab
Showing 1 changed file with 1 addition and 2 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

0 comments on commit 2b4b2ab

Please sign in to comment.