mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Readable paired device names for Apple TV airplay and companion protocols (#93449)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
7ec6e03d5d
commit
33387bf418
@ -407,8 +407,9 @@ class AppleTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
# Protocol specific arguments
|
# Protocol specific arguments
|
||||||
pair_args = {}
|
pair_args = {}
|
||||||
if self.protocol == Protocol.DMAP:
|
if self.protocol in {Protocol.AirPlay, Protocol.Companion, Protocol.DMAP}:
|
||||||
pair_args["name"] = "Home Assistant"
|
pair_args["name"] = "Home Assistant"
|
||||||
|
if self.protocol == Protocol.DMAP:
|
||||||
pair_args["zeroconf"] = await zeroconf.async_get_instance(self.hass)
|
pair_args["zeroconf"] = await zeroconf.async_get_instance(self.hass)
|
||||||
|
|
||||||
# Initiate the pairing process
|
# Initiate the pairing process
|
||||||
|
Loading…
x
Reference in New Issue
Block a user