Fix 'audiotrackdata'
This commit is contained in:
		
							parent
							
								
									0d2424b578
								
							
						
					
					
						commit
						11ed2d1444
					
				|  | @ -1,5 +1,12 @@ | ||||||
| # Changelog | # 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 💪 | ## [0.4.0] Started with an "ick", but is now packed with new features 💪 | ||||||
| 
 | 
 | ||||||
| > ⚠️ Please read the following carefully: | > ⚠️ Please read the following carefully: | ||||||
|  |  | ||||||
|  | @ -72,6 +72,7 @@ class SoundbarDevice: | ||||||
|             await self._update_equalizer() |             await self._update_equalizer() | ||||||
| 
 | 
 | ||||||
|     async def _update_media(self): |     async def _update_media(self): | ||||||
|  |         if "audioTrackData" in self.device.status._attributes: | ||||||
|             self.__media_artist = self.device.status._attributes["audioTrackData"].value[ |             self.__media_artist = self.device.status._attributes["audioTrackData"].value[ | ||||||
|                 "artist" |                 "artist" | ||||||
|             ] |             ] | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue