Default homekit to listening on all interfaces to match Home Assistant behavior (#91520)
This commit is contained in:
parent
01046b88e5
commit
b875706bdd
2 changed files with 13 additions and 13 deletions
|
@ -302,10 +302,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
_LOGGER.debug("Begin setup HomeKit for %s", name)
|
||||
|
||||
# ip_address and advertise_ip are yaml only
|
||||
ip_address = conf.get(
|
||||
CONF_IP_ADDRESS, await network.async_get_source_ip(hass, MDNS_TARGET_IP)
|
||||
ip_address = conf.get(CONF_IP_ADDRESS, [None])
|
||||
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
|
||||
# to indicate that the config entry was setup after
|
||||
# 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,
|
||||
BRIDGE_NAME,
|
||||
DEFAULT_PORT,
|
||||
"1.2.3.4",
|
||||
[None],
|
||||
ANY,
|
||||
ANY,
|
||||
{},
|
||||
HOMEKIT_MODE_BRIDGE,
|
||||
None,
|
||||
"1.2.3.4",
|
||||
entry.entry_id,
|
||||
entry.title,
|
||||
devices=[],
|
||||
|
@ -206,12 +206,12 @@ async def test_removing_entry(
|
|||
hass,
|
||||
BRIDGE_NAME,
|
||||
DEFAULT_PORT,
|
||||
"1.2.3.4",
|
||||
[None],
|
||||
ANY,
|
||||
ANY,
|
||||
{},
|
||||
HOMEKIT_MODE_BRIDGE,
|
||||
None,
|
||||
"1.2.3.4",
|
||||
entry.entry_id,
|
||||
entry.title,
|
||||
devices=[],
|
||||
|
@ -1476,12 +1476,12 @@ async def test_yaml_updates_update_config_entry_for_name(
|
|||
hass,
|
||||
BRIDGE_NAME,
|
||||
12345,
|
||||
"1.2.3.4",
|
||||
[None],
|
||||
ANY,
|
||||
ANY,
|
||||
{},
|
||||
HOMEKIT_MODE_BRIDGE,
|
||||
None,
|
||||
"1.2.3.4",
|
||||
entry.entry_id,
|
||||
entry.title,
|
||||
devices=[],
|
||||
|
@ -1834,12 +1834,12 @@ async def test_reload(hass: HomeAssistant, mock_async_zeroconf: None) -> None:
|
|||
hass,
|
||||
"reloadable",
|
||||
12345,
|
||||
"1.2.3.4",
|
||||
[None],
|
||||
ANY,
|
||||
False,
|
||||
{},
|
||||
HOMEKIT_MODE_BRIDGE,
|
||||
None,
|
||||
"1.2.3.4",
|
||||
entry.entry_id,
|
||||
entry.title,
|
||||
devices=[],
|
||||
|
@ -1869,12 +1869,12 @@ async def test_reload(hass: HomeAssistant, mock_async_zeroconf: None) -> None:
|
|||
hass,
|
||||
"reloadable",
|
||||
45678,
|
||||
"1.2.3.4",
|
||||
[None],
|
||||
ANY,
|
||||
False,
|
||||
{},
|
||||
HOMEKIT_MODE_BRIDGE,
|
||||
None,
|
||||
"1.2.3.4",
|
||||
entry.entry_id,
|
||||
entry.title,
|
||||
devices=[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue