@mock.patch('homeassistant.components.mqtt.MQTT')
def mock_mqtt_component(hass, mock_mqtt):
    _setup_component(hass, mqtt.DOMAIN, {
        mqtt.DOMAIN: {
            mqtt.CONF_BROKER: 'mock-broker',
        }
    })
    return mock_mqtt
Mark credit cards that are going to expire soon or have expired.
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/mock_mqtt_component--crossover with--dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/blueprints/billing/tasks.py/mark_old_credit_cards