def test_get_significant_states_include(hass_history):
    'Test significant states when including domains and entities.\n\n    We should only get back changes of the media_player.test entity and the\n    thermostat domain.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test2']
    del states['media_player.test3']
    del states['script.can_cancel_this_one']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_INCLUDE: {history.CONF_DOMAINS: ['thermostat'], history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)
Test significant states when including domains and entities.

We should only get back changes of the media_player.test entity and the
thermostat domain.
def test_get_significant_states_include(hass_history):
    'Test significant states when including domains and entities.\n\n    We should only get back changes of the media_player.test entity and the\n    thermostat domain.\n    '
    hass = hass_history
    (zero, four, states) = record_states(hass)
    del states['media_player.test2']
    del states['media_player.test3']
    del states['script.can_cancel_this_one']
    config = history.CONFIG_SCHEMA({ha.DOMAIN: {}, history.DOMAIN: {history.CONF_INCLUDE: {history.CONF_DOMAINS: ['thermostat'], history.CONF_ENTITIES: ['media_player.test']}}})
    check_significant_states(hass, zero, four, states, config)