Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requirements conflict with Home Assistant Discord notification integration #6

Closed
xiidoz opened this issue Jan 20, 2020 · 3 comments
Closed
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@xiidoz
Copy link
Contributor

xiidoz commented Jan 20, 2020

Applies to:

  • discord_game v. 3.0.2
  • Home Assistant v. 104.2 (and previous releases)

If you are using the Home Assistant Discord integration for notifications, discord.py v. 1.2.5 gets loaded, even though discord_game requires a newer version of discord.py.

Until the new version is officially released and the Home Assistant integration is updated, the following workaround can be applied:

Create a folder discord under custom_components and copy the files from https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/discord in that folder. Update the manifest.json to use the newer version of discord.py, so that the file looks like this:

{
  "domain": "discord",
  "name": "Discord",
  "documentation": "https://www.home-assistant.io/integrations/discord",
  "requirements": ["git+https://github.com/Rapptz/discord.py@23f16618fdf5fcbeeefed7acb56b579e74bc88d8#discord.py==1.6.0"],
  "dependencies": [],
  "codeowners": []
}

Restart Home Assistant and both Discord integrations should be working as intended.

@LordBoos LordBoos added documentation Improvements or additions to documentation good first issue Good for newcomers labels Jan 20, 2020
@LordBoos
Copy link
Owner

LordBoos commented Feb 3, 2020

Can you please test the new version 3.0.3? Discord.py library update was released. Official component still uses 1.2.5, but it might work. If not, the official component will have new Discord.py library in the next version, as it was already merged to their code: home-assistant/core#31391

@xiidoz
Copy link
Contributor Author

xiidoz commented Feb 3, 2020

It does work under home assistant dev branch without any workaround. We can close this Issue as soon as home-assistant/core#31391 gets merged to master.

⚠ The version conflict between home assistant's current release (0.104.4) still exists, as home assistant force loads discord.py v. 1.2.5, which is incompatible with discord_game v. 3.0.2 and 3.0.3

@xiidoz
Copy link
Contributor Author

xiidoz commented Feb 26, 2020

Is now solved with home assistant 0.106.0.

@xiidoz xiidoz closed this as completed Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants