async def test_default_supported_features(hass, mqtt_mock):
    'Test that the correct supported features.'
    assert (await async_setup_component(hass, vacuum.DOMAIN, {vacuum.DOMAIN: DEFAULT_CONFIG}))
    entity = hass.states.get('vacuum.mqtttest')
    entity_features = entity.attributes.get(mqttvacuum.CONF_SUPPORTED_FEATURES, 0)
    assert (sorted(services_to_strings(entity_features, SERVICE_TO_STRING)) == sorted(['start', 'stop', 'return_home', 'battery', 'status', 'clean_spot']))
Test that the correct supported features.
async def test_default_supported_features(hass, mqtt_mock):
    
    assert (await async_setup_component(hass, vacuum.DOMAIN, {vacuum.DOMAIN: DEFAULT_CONFIG}))
    entity = hass.states.get('vacuum.mqtttest')
    entity_features = entity.attributes.get(mqttvacuum.CONF_SUPPORTED_FEATURES, 0)
    assert (sorted(services_to_strings(entity_features, SERVICE_TO_STRING)) == sorted(['start', 'stop', 'return_home', 'battery', 'status', 'clean_spot']))