Fix 'audiotrackdata'

This commit is contained in:
samuelspagl 2024-10-07 14:29:22 +02:00
parent 0d2424b578
commit 11ed2d1444
2 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,12 @@
# Changelog
## [0.4.1] It seems some Soundbars don't like music
### Fixed
- As it seems that some soundbars don't have the 'audioTrackData' attribute
the update process now, only tries to look at the data if it is existing.
## [0.4.0] Started with an "ick", but is now packed with new features 💪
> ⚠️ Please read the following carefully:

View File

@ -72,6 +72,7 @@ class SoundbarDevice:
await self._update_equalizer()
async def _update_media(self):
if "audioTrackData" in self.device.status._attributes:
self.__media_artist = self.device.status._attributes["audioTrackData"].value[
"artist"
]