Help setting up a service call

So I trying to set up a service call for a custom component I am working on, it appears in the list of services as and extension of the root DOMAIN service but every time I call it it just says failed to call service, and never executes the function even with the json {“ssid”:“ssid”,“password”:“password”,“sectype”:1} in the service call , any idea what I am doing wrong, any help is appreciated ?

This is and example of my code

SERVICE_SET_WIFI = "test.config_wifi"
SET_WIFI_SCHEMA = vol.Schema({
vol.Required(CONF_WIFI_SSID): cv.string,
    vol.Required(CONF_WIFI_PASSWORD): cv.string,
    vol.Required(CONF_WIFI_SECTYPE): cv.positive_int,
async def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
    async def async_set_test_wifi(call):
               ssid  =
               password  =
               sectype  =
               return True[DOMAIN].async_register_entity_service(

sorted, looks like you can’t have a dot in the service name i.e. test.config_wifi didnt work but test_config_wifi did