'Setup things to be run when tests are started.'

def setup_method(self, method):

    self.hass = get_test_home_assistant()
    mock_mqtt_component(self.hass)
    self.assertTrue(setup_component(self.hass, sensor.DOMAIN, {sensor.DOMAIN: {CONF_PLATFORM: 'mqtt_room', CONF_NAME: NAME, CONF_DEVICE_ID: DEVICE_ID, CONF_STATE_TOPIC: 'room_presence', CONF_QOS: DEFAULT_QOS, CONF_TIMEOUT: 5}}))
    self.hass.states.set(SENSOR_STATE, None)
