Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Move Kodi services from 'media_player' domain to 'kodi' #25753
Move the Kodi services to their own domain.
Related issue (if applicable): fixes #
If user exposed functionality or configuration variables are added/changed:
If the code does not interact with devices:
changed the title
[WIP] Move Kodi services from 'media_player' domain to 'kodi'
Aug 8, 2019
We should only merge this PR if we do it right, so that future PRs will build on top of the right foundation.
It should be the exact same code, just be put inside
I checked this via:
from homeassistant.components.media_player.const import DOMAIN as MP_DOMAIN async def async_setup(hass, config): """Set up the Kodi integration.""" if any( ((CONF_PLATFORM, DOMAIN) in cfg.items() for cfg in config.get(MP_DOMAIN, )) ): # Register the Kodi media_player services
I tried it out and it only registers the services if there is a Kodi media player config entry. But if this is not the proper way to do it, let me know.