mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 03:37:07 +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
|
self._api = api
|
||||||
|
|
||||||
# get profile info
|
# 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:
|
if profile.get('success', True) and profile.get('code', 0) != 28:
|
||||||
self.success_init = True
|
self.success_init = True
|
||||||
self._gamertag = profile.get('Gamertag')
|
self._gamertag = profile.get('gamertag')
|
||||||
self._picture = profile.get('GameDisplayPicRaw')
|
self._picture = profile.get('gamerpicSmallSslImagePath')
|
||||||
else:
|
else:
|
||||||
self.success_init = False
|
self.success_init = False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user