Skip to content

Commit

Permalink
Work Around For Username API call being removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeath authored Jan 8, 2025
1 parent f45615c commit 6d4d58e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/roblox/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ async def async_update(self):
try:
session = async_get_clientsession(self.hass)

resp = await session.get("https://www.roblox.com/profile?userId=" + self._account)
data = await resp.json()
self._name = data["Username"]
#resp = await session.get("https://www.roblox.com/profile?userId=" + self._account)
#data = await resp.json()
#self._name = data["Username"]
self._name = self._account


#self._avatar = data["AvatarUri"]

Expand Down

0 comments on commit 6d4d58e

Please sign in to comment.