def get_service(hass, config):
    if not validate_config({DOMAIN: config},
                           {DOMAIN: [CONF_USERNAME,
                                     CONF_ACCESS_TOKEN]},
                           _LOGGER):
        return None

    return FreeSMSNotificationService(config[CONF_USERNAME],
                                      config[CONF_ACCESS_TOKEN])


# pylint: disable=too-few-public-methods
Get the Free Mobile SMS notification service.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/notify/free_mobile.py/get_service