def test_get_significant_states_exclude(hass_history):
    'Test significant states when excluding entities and domains.\n\n    We should not get back every thermostat and media player test changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    del states['thermostat.test']
    del states['thermostat.test2']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['thermostat'], history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)
Test significant states when excluding entities and domains.

We should not get back every thermostat and media player test changes.
def test_get_significant_states_exclude(hass_history):
    'Test significant states when excluding entities and domains.\n\n    We should not get back every thermostat and media player test changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    del states['thermostat.test']
    del states['thermostat.test2']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_DOMAINS: ['thermostat'], history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)