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

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