async def test_status_invalid_json(hass, mqtt_mock):
    'Test to make sure nothing breaks if the vacuum sends bad JSON.'
    config = deepcopy(DEFAULT_CONFIG)
    config[mqttvacuum.CONF_SUPPORTED_FEATURES] = services_to_strings(mqttvacuum.ALL_SERVICES, SERVICE_TO_STRING)
    assert (await async_setup_component(hass, vacuum.DOMAIN, {vacuum.DOMAIN: config}))
    async_fire_mqtt_message(hass, 'vacuum/state', '{"asdfasas false}')
    state = hass.states.get('vacuum.mqtttest')
    assert (state.state == STATE_UNKNOWN)
Test to make sure nothing breaks if the vacuum sends bad JSON.
async def test_status_invalid_json(hass, mqtt_mock):
    
    config = deepcopy(DEFAULT_CONFIG)
    config[mqttvacuum.CONF_SUPPORTED_FEATURES] = services_to_strings(mqttvacuum.ALL_SERVICES, SERVICE_TO_STRING)
    assert (await async_setup_component(hass, vacuum.DOMAIN, {vacuum.DOMAIN: config}))
    async_fire_mqtt_message(hass, 'vacuum/state', '{"asdfasas false}')
    state = hass.states.get('vacuum.mqtttest')
    assert (state.state == STATE_UNKNOWN)