core: Failed to initialize notification service discord

The problem

After upgrading from 2022.3.8 to 2022.4.1 the notify component reports issues in the log when using the discord integration:

homeassistant    | 2022-04-10 10:37:20 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service discord

The issue still occurs when removing the discord configuration from the YML file.

What version of Home Assistant Core has the issue?

2022.4.1

What was the last working version of Home Assistant Core?

2022.3.8

What type of installation are you running?

Home Assistant Container

Integration causing the issue

discord, notify

Link to integration documentation on our website

https://www.home-assistant.io/integrations/discord/

Diagnostics information

No response

Example YAML snippet

notify:
  - name: discord
    platform: discord
    token: !secret discord_bot_token

logger:
  default: warn
  logs:
    homeassistant.components.notify: debug

Anything in the logs that might be useful for us?

homeassistant    | 2022-04-10 11:00:31 WARNING (MainThread) [homeassistant.components.discord.config_flow] Configuration of the Discord integration in YAML is deprecated and will be removed in Home Assistant 2022.6; Your existing configuration has been imported into the UI automatically and can be safely removed from your configuration.yaml file
homeassistant    | 2022-04-10 11:00:37 INFO (MainThread) [homeassistant.components.notify] Setting up notify.discord
homeassistant    | 2022-04-10 11:00:37 ERROR (MainThread) [homeassistant.components.notify] Failed to initialize notification service discord
homeassistant    | 2022-04-10 11:00:37 INFO (MainThread) [homeassistant.components.notify] Setting up notify.discord
homeassistant    | 2022-04-10 11:00:38 INFO (MainThread) [homeassistant.components.notify] Setting up notify.mobile_app

Additional information

Other users experience this problem as well:

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (4 by maintainers)

Most upvoted comments

Please have a look here. https://github.com/home-assistant/core/issues/68547

Also, the bot token is what is needed. That can be found under Build-A-Bot. @stevietv