From e5cc5a58e1d08b06b4b539dcb115d315c9584611 Mon Sep 17 00:00:00 2001 From: Rene Nulsch <33263735+ReneNulschDE@users.noreply.github.com> Date: Wed, 27 Dec 2017 09:24:37 +0100 Subject: [PATCH] Bugfix for HA Issue 7292, 9412 - switch to gamertag to receive ssl image url (#11315) --- homeassistant/components/sensor/xbox_live.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/sensor/xbox_live.py b/homeassistant/components/sensor/xbox_live.py index 3b59f06be31..c3c8cde0177 100644 --- a/homeassistant/components/sensor/xbox_live.py +++ b/homeassistant/components/sensor/xbox_live.py @@ -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