LordBoos / discord_game

Home Assistant custom component to get online and game status of Discord users
MIT License
56 stars 7 forks source link

Use async/await, pattern matching and ability to use ids #19

Closed C0ntroller closed 3 years ago

C0ntroller commented 3 years ago

The first commit updates the coroutine-syntax to the modern asnyc/await syntax.

The second commit matches patterns for usernames. No faulty entity is added. Maybe add a warning in another else.

The last commit adds the ability to use ids and fetches the username. Closes #17

LordBoos commented 3 years ago

Thank you for your contribution, unfortunately I'm currently in a time press due to my work and I have no time to test this out, I'll merge this anyway due to your previous contributions being all OK.