core: Cannot add Xbox integration

The problem

I cannot add the Xbox integration to my Home Assistant installation. I went to Integrations and clicked on the + button, searched for Xbox and it throws the following error:

image

Environment

  • Home Assistant Core release with the issue: 0.117.0
  • Last working Home Assistant Core release (if known): -
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: xbox
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/xbox/

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

The Core log provider does not throw any messages related to Xbox.

About this issue

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

Most upvoted comments

Agreed. I just found this issue after I got help in Discord to look into this here and found the issue. I’m aware now that the docs say that it connects with the Home Assistant Cloud Linking Service however I couldn’t link that sentence with default_config: or cloud: since this is the first time I’ve been confronted with this situation. Just a heads up that this is needed wouldn’t be bad in my eyes as if somebody wants to disable cloud integration, they also have to disable default_config automatically.

The beautiful thing is the documentation is also open source. Please open a PR detailing the dependency in whichever way you find most clear!

Or for us old users who still have their config from 2 or 3 years ago who don’t use default_config:

I think lots and lots of people use homeassistant bec it provides a privacy based system.

Many of those people choose to remove the optional cloud component for the same reason.

If an integration is going to fail because it has a dependency on something else that is optional it should be much more clearly detailed in the documentation, or at the very least the error message that appears should explain the problem better.

The fact that default_config is in fact defaulted for new installs, this integration does work out of the box

This is a terrible approach to adopt. Just make it clear in the documentation, something like

“To use set up this integration you must have either default_config: or cloud: in your configuration, or use the manual installation instructions here… [link]”

in my opinion that has the potential to cause additional confusion

Why? Surely it causes much more confusion when something doesn’t work and theres no explanation for it in the documentation.

@hunterjm It works with cloud: indeed. I removed that a while ago because of the pop-ups of my expiring subscription. I should give Home Assistant Cloud a try again soon.

Yes you’re right @firstof9. I searched on GitHub for open Xbox issues and forgot to check the closed one. My bad!

Btw, great integration! Thanks @hunterjm! (and others!)

cloud: is required in your config, or you must follow the (unsupported) manual instructions in the documentation.