mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Use async_start_reauth helper in broadlink (#129308)
This commit is contained in:
parent
320aa34d39
commit
72504d7619
@ -15,7 +15,7 @@ from broadlink.exceptions import (
|
||||
)
|
||||
from typing_extensions import TypeVar
|
||||
|
||||
from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntry
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
CONF_MAC,
|
||||
@ -200,10 +200,4 @@ class BroadlinkDevice(Generic[_ApiT]):
|
||||
self.api.host[0],
|
||||
)
|
||||
|
||||
self.hass.async_create_task(
|
||||
self.hass.config_entries.flow.async_init(
|
||||
DOMAIN,
|
||||
context={"source": SOURCE_REAUTH},
|
||||
data={CONF_NAME: self.name, **self.config.data},
|
||||
)
|
||||
)
|
||||
self.config.async_start_reauth(self.hass, data={CONF_NAME: self.name})
|
||||
|
Loading…
x
Reference in New Issue
Block a user