mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Bugfix for HA Issue 7292, 9412 - switch to gamertag to receive ssl image url (#11315)
This commit is contained in:
parent
aa8db784d5
commit
e5cc5a58e1
@ -57,12 +57,12 @@ class XboxSensor(Entity):
|
||||
self._api = api
|
||||
|
||||
# get profile info
|
||||
profile = self._api.get_user_profile(self._xuid)
|
||||
profile = self._api.get_user_gamercard(self._xuid)
|
||||
|
||||
if profile.get('success', True) and profile.get('code', 0) != 28:
|
||||
self.success_init = True
|
||||
self._gamertag = profile.get('Gamertag')
|
||||
self._picture = profile.get('GameDisplayPicRaw')
|
||||
self._gamertag = profile.get('gamertag')
|
||||
self._picture = profile.get('gamerpicSmallSslImagePath')
|
||||
else:
|
||||
self.success_init = False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user