From 33387bf418640f1c32f07694decbe78aa9c2f87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Modzelewski?= Date: Thu, 25 May 2023 03:07:49 +0200 Subject: [PATCH] Readable paired device names for Apple TV airplay and companion protocols (#93449) Co-authored-by: J. Nick Koston --- homeassistant/components/apple_tv/config_flow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/apple_tv/config_flow.py b/homeassistant/components/apple_tv/config_flow.py index 9b80d992cdd..8a2130faca0 100644 --- a/homeassistant/components/apple_tv/config_flow.py +++ b/homeassistant/components/apple_tv/config_flow.py @@ -407,8 +407,9 @@ class AppleTVConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): # Protocol specific arguments pair_args = {} - if self.protocol == Protocol.DMAP: + if self.protocol in {Protocol.AirPlay, Protocol.Companion, Protocol.DMAP}: pair_args["name"] = "Home Assistant" + if self.protocol == Protocol.DMAP: pair_args["zeroconf"] = await zeroconf.async_get_instance(self.hass) # Initiate the pairing process