mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Merge pull request #380 from balloob/better-itunes-speaker-names
Append 'AirTunes Speaker' to Name of Devices Shared via itunes-api MediaPlayer
This commit is contained in:
commit
9bec0316ea
@ -356,7 +356,8 @@ class AirPlayDevice(MediaPlayerDevice):
|
||||
self.player_state = state_hash.get('player_state', None)
|
||||
|
||||
if 'name' in state_hash:
|
||||
self.device_name = state_hash.get('name', 'AirPlay')
|
||||
name = state_hash.get('name', '')
|
||||
self.device_name = (name + ' AirTunes Speaker').strip()
|
||||
|
||||
if 'kind' in state_hash:
|
||||
self.kind = state_hash.get('kind', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user