mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Remove unused custom flow context key 'name' from wyoming (#127182)
This commit is contained in:
parent
120f4adf35
commit
3052eca564
@ -10,7 +10,7 @@ import voluptuous as vol
|
|||||||
|
|
||||||
from homeassistant.components import hassio, zeroconf
|
from homeassistant.components import hassio, zeroconf
|
||||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
||||||
from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT
|
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
from .data import WyomingService
|
from .data import WyomingService
|
||||||
@ -123,7 +123,6 @@ class WyomingConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
await self.async_set_unique_id(unique_id)
|
await self.async_set_unique_id(unique_id)
|
||||||
self._abort_if_unique_id_configured()
|
self._abort_if_unique_id_configured()
|
||||||
|
|
||||||
self.context[CONF_NAME] = self._name
|
|
||||||
self.context["title_placeholders"] = {"name": self._name}
|
self.context["title_placeholders"] = {"name": self._name}
|
||||||
|
|
||||||
self._service = service
|
self._service = service
|
||||||
|
@ -94,7 +94,6 @@
|
|||||||
# name: test_zeroconf_discovery
|
# name: test_zeroconf_discovery
|
||||||
FlowResultSnapshot({
|
FlowResultSnapshot({
|
||||||
'context': dict({
|
'context': dict({
|
||||||
'name': 'Test Satellite',
|
|
||||||
'source': 'zeroconf',
|
'source': 'zeroconf',
|
||||||
'title_placeholders': dict({
|
'title_placeholders': dict({
|
||||||
'name': 'Test Satellite',
|
'name': 'Test Satellite',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user