LordBoos / discord_game

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

adding the example config breaks the config #14

Closed bobloadmire closed 4 years ago

bobloadmire commented 4 years ago

I added the example config, replacing with my token and usernames, and when I hit check configuration, it just spins circles. As soon as I remove the discord_game entry its valid again.

LordBoos commented 4 years ago

Tell me the steps you did to be in this state. Have you installed this component from HACS and then added the example config without first restarting HA? Thing is that HA thinks it is invalid config, because component is not loaded until you first restart HA.

bobloadmire commented 4 years ago

HA has been restarted. Heres my config:

sensor:
  - platform: discord_game
    token: <redacted>
    image_format: webp
    members:
      - deinekabel#xxxx
      - spandy24#xxxx
      - Raithmaster1#xxxx
      - Michael.Zumwalt#xxxx
      - Zummie#xxxx

Up saving the yaml, and clicking check config, it just has the loading circle indefinately until I reload the page.

I also uninstalled/reinstalleed from HACS and did multiple reboots

C0NTi commented 4 years ago

HA has been restarted. Heres my config:

sensor:
  - platform: discord_game
    token: <redacted>
    image_format: webp
    members:
      - deinekabel#xxxx
      - spandy24#xxxx
      - Raithmaster1#xxxx
      - Michael.Zumwalt#xxxx
      - Zummie#xxxx

Up saving the yaml, and clicking check config, it just has the loading circle indefinately until I reload the page.

I also uninstalled/reinstalleed from HACS and did multiple reboots

Have you tried it without Michael?

LordBoos commented 4 years ago

Yea that might cause it. Try to quote him. - 'Michael.Zumwalt#xxxx'

bobloadmire commented 4 years ago

honest to god, it just started working and I have no clue why. I didn't have to quote the user with the period either

LordBoos commented 4 years ago

I was not able to reproduce the issue. Closing this for now.