LordBoos / discord_game

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

Prevent AttributeError when no Emoji is set #16

Closed C0ntroller closed 3 years ago

C0ntroller commented 3 years ago

The integration throws an AttributeError when a CustomActivty is set without an emoji. AttributeError: 'NoneType' object has no attribute 'name' This can easily be prevented by this one line.

LordBoos commented 3 years ago

Thank you for your contribution.