mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Default homekit to listening on all interfaces to match Home Assistant behavior (#91520)
This commit is contained in:
parent
01046b88e5
commit
b875706bdd
@ -302,10 +302,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
_LOGGER.debug("Begin setup HomeKit for %s", name)
|
_LOGGER.debug("Begin setup HomeKit for %s", name)
|
||||||
|
|
||||||
# ip_address and advertise_ip are yaml only
|
# ip_address and advertise_ip are yaml only
|
||||||
ip_address = conf.get(
|
ip_address = conf.get(CONF_IP_ADDRESS, [None])
|
||||||
CONF_IP_ADDRESS, await network.async_get_source_ip(hass, MDNS_TARGET_IP)
|
advertise_ip = conf.get(
|
||||||
|
CONF_ADVERTISE_IP, await network.async_get_source_ip(hass, MDNS_TARGET_IP)
|
||||||
)
|
)
|
||||||
advertise_ip = conf.get(CONF_ADVERTISE_IP)
|
|
||||||
# exclude_accessory_mode is only used for config flow
|
# exclude_accessory_mode is only used for config flow
|
||||||
# to indicate that the config entry was setup after
|
# to indicate that the config entry was setup after
|
||||||
# we started creating config entries for entities that
|
# we started creating config entries for entities that
|
||||||
|
@ -164,12 +164,12 @@ async def test_setup_min(hass: HomeAssistant, mock_async_zeroconf: None) -> None
|
|||||||
hass,
|
hass,
|
||||||
BRIDGE_NAME,
|
BRIDGE_NAME,
|
||||||
DEFAULT_PORT,
|
DEFAULT_PORT,
|
||||||
"1.2.3.4",
|
[None],
|
||||||
ANY,
|
ANY,
|
||||||
ANY,
|
ANY,
|
||||||
{},
|
{},
|
||||||
HOMEKIT_MODE_BRIDGE,
|
HOMEKIT_MODE_BRIDGE,
|
||||||
None,
|
"1.2.3.4",
|
||||||
entry.entry_id,
|
entry.entry_id,
|
||||||
entry.title,
|
entry.title,
|
||||||
devices=[],
|
devices=[],
|
||||||
@ -206,12 +206,12 @@ async def test_removing_entry(
|
|||||||
hass,
|
hass,
|
||||||
BRIDGE_NAME,
|
BRIDGE_NAME,
|
||||||
DEFAULT_PORT,
|
DEFAULT_PORT,
|
||||||
"1.2.3.4",
|
[None],
|
||||||
ANY,
|
ANY,
|
||||||
ANY,
|
ANY,
|
||||||
{},
|
{},
|
||||||
HOMEKIT_MODE_BRIDGE,
|
HOMEKIT_MODE_BRIDGE,
|
||||||
None,
|
"1.2.3.4",
|
||||||
entry.entry_id,
|
entry.entry_id,
|
||||||
entry.title,
|
entry.title,
|
||||||
devices=[],
|
devices=[],
|
||||||
@ -1476,12 +1476,12 @@ async def test_yaml_updates_update_config_entry_for_name(
|
|||||||
hass,
|
hass,
|
||||||
BRIDGE_NAME,
|
BRIDGE_NAME,
|
||||||
12345,
|
12345,
|
||||||
"1.2.3.4",
|
[None],
|
||||||
ANY,
|
ANY,
|
||||||
ANY,
|
ANY,
|
||||||
{},
|
{},
|
||||||
HOMEKIT_MODE_BRIDGE,
|
HOMEKIT_MODE_BRIDGE,
|
||||||
None,
|
"1.2.3.4",
|
||||||
entry.entry_id,
|
entry.entry_id,
|
||||||
entry.title,
|
entry.title,
|
||||||
devices=[],
|
devices=[],
|
||||||
@ -1834,12 +1834,12 @@ async def test_reload(hass: HomeAssistant, mock_async_zeroconf: None) -> None:
|
|||||||
hass,
|
hass,
|
||||||
"reloadable",
|
"reloadable",
|
||||||
12345,
|
12345,
|
||||||
"1.2.3.4",
|
[None],
|
||||||
ANY,
|
ANY,
|
||||||
False,
|
False,
|
||||||
{},
|
{},
|
||||||
HOMEKIT_MODE_BRIDGE,
|
HOMEKIT_MODE_BRIDGE,
|
||||||
None,
|
"1.2.3.4",
|
||||||
entry.entry_id,
|
entry.entry_id,
|
||||||
entry.title,
|
entry.title,
|
||||||
devices=[],
|
devices=[],
|
||||||
@ -1869,12 +1869,12 @@ async def test_reload(hass: HomeAssistant, mock_async_zeroconf: None) -> None:
|
|||||||
hass,
|
hass,
|
||||||
"reloadable",
|
"reloadable",
|
||||||
45678,
|
45678,
|
||||||
"1.2.3.4",
|
[None],
|
||||||
ANY,
|
ANY,
|
||||||
False,
|
False,
|
||||||
{},
|
{},
|
||||||
HOMEKIT_MODE_BRIDGE,
|
HOMEKIT_MODE_BRIDGE,
|
||||||
None,
|
"1.2.3.4",
|
||||||
entry.entry_id,
|
entry.entry_id,
|
||||||
entry.title,
|
entry.title,
|
||||||
devices=[],
|
devices=[],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user