Fix Kodi discovery title (#40247)

pull/40256/head
On Freund 2020-09-18 18:30:46 +03:00 committed by GitHub
parent 3612df91e1
commit 7f072a5ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -116,6 +116,9 @@ class KodiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
} }
) )
# pylint: disable=no-member # https://github.com/PyCQA/pylint/issues/3167
self.context.update({"title_placeholders": {CONF_NAME: self._name}})
try: try:
await validate_http(self.hass, self._get_data()) await validate_http(self.hass, self._get_data())
await validate_ws(self.hass, self._get_data()) await validate_ws(self.hass, self._get_data())
@ -129,8 +132,6 @@ class KodiConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
_LOGGER.exception("Unexpected exception") _LOGGER.exception("Unexpected exception")
return self.async_abort(reason="unknown") return self.async_abort(reason="unknown")
# pylint: disable=no-member # https://github.com/PyCQA/pylint/issues/3167
self.context.update({"title_placeholders": {CONF_NAME: self._name}})
return await self.async_step_discovery_confirm() return await self.async_step_discovery_confirm()
async def async_step_discovery_confirm(self, user_input=None): async def async_step_discovery_confirm(self, user_input=None):