def setup_platform(hass, config, add_devices, discovery_info=None):
    if not config.get(CONF_HOST):
        _LOGGER.error(
            "Missing required configuration items in %s: %s",
            DOMAIN,
            CONF_HOST)
        return False

    denon = DenonDevice(
        config.get("name", "Music station"),
        config.get("host")
    )
    if denon.update():
        add_devices([denon])
        return True
    else:
        return False
Setup the Denon platform.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/denon.py/setup_platform