1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02: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:
Michał Modzelewski 2023-05-25 03:07:49 +02:00 committed by GitHub
parent 7ec6e03d5d
commit 33387bf418
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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