'Test ignoring updates via state topic.'

def test_ignore_update_state_if_unknown_via_state_topic(self):

    assert setup_component(self.hass, alarm_control_panel.DOMAIN, {alarm_control_panel.DOMAIN: {'platform': 'mqtt', 'name': 'test', 'state_topic': 'alarm/state', 'command_topic': 'alarm/command'}})
    entity_id = 'alarm_control_panel.test'
    self.assertEqual(STATE_UNKNOWN, self.hass.states.get(entity_id).state)
    fire_mqtt_message(self.hass, 'alarm/state', 'unsupported    state')
    self.hass.block_till_done()
    self.assertEqual(STATE_UNKNOWN, self.hass.states.get(entity_id).state)
