'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(self):

    (zero, four, states) = self.record_states()
    del states['media_player.test2']
    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']}}})
    self.check_significant_states(zero, four, states, config)
