def test_get_significant_states_exclude_entity(hass_history):
    'Test if significant states are returned when excluding entities.\n\n    We should get back every thermostat and script changes, but no media\n    player changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)
Test if significant states are returned when excluding entities.

We should get back every thermostat and script changes, but no media
player changes.
def test_get_significant_states_exclude_entity(hass_history):
    'Test if significant states are returned when excluding entities.\n\n    We should get back every thermostat and script changes, but no media\n    player changes.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_EXCLUDE: {history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)